-
Notifications
You must be signed in to change notification settings - Fork 527
install_components must be a comma-separated string, not a list #471
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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-emulatorAdditional information
Perhaps this is expected behavior, but if so it seems to contradict what's written in the readme.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working