Skip to content

install_components must be a comma-separated string, not a list #471

@kkroening

Description

@kkroening

TL;DR

The readme states that install_components should be a "List of Cloud SDK components to install" but it appears that a comma-separated string is expected rather than a list.

Expected behavior

I would expect to be able to use a YAML list to specify the install_components input.

Observed behavior

If a YAML list is used to specify the install_components input such as install_components: [beta, cloud-datastore-emulator], the following error is produced:

The workflow is not valid. .github/workflows/test.yaml (Line: 17, Col: 9): A sequence was not expected

But using a comma-separated string such as install_components: beta, cloud-datastore-emulator works.

Action YAML

name: Test
on: [push]
jobs:
  test:
    runs-on: ubuntu-20.04
    steps:
    - name: Set up Cloud SDK
      uses: google-github-actions/setup-gcloud@v0
      with:
        install_components:
        - beta
        - cloud-datastore-emulator

Additional information

Perhaps this is expected behavior, but if so it seems to contradict what's written in the readme.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions