Closed enricojonas closed 8 months ago
This isn't unique to v2 (v1 had the same issue). Proposed fix is in https://github.com/google-github-actions/setup-gcloud/pull/669.
@sethvargo v1 did not throw the warning, but good if it's fixed now:
Run google-github-actions/setup-gcloud@v1.1.0
with:
project_id: xxx
skip_install: true
version: latest
env:
CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE: xxx.json
GOOGLE_APPLICATION_CREDENTIALS: xxx.json
GOOGLE_GHA_CREDS_PATH: xxx.json
CLOUDSDK_CORE_PROJECT: xxx
CLOUDSDK_PROJECT: xxx
GCLOUD_PROJECT: xxx
GCP_PROJECT: xxx
GOOGLE_CLOUD_PROJECT: xxx
Skipping installation ("skip_install" was true)
Successfully authenticated
Successfully set default project
TL;DR
After switching to v2 a warning is thrown when using skip_install: true . We do not specify the version so that should not throw a warning. If we would specify the version the warning would be valid.
Ignoring "version" because "skip_install" was true!
Expected behavior
Do not throw a warning if version is not specified and skip_install is true.
Observed behavior
A warning is thrown:
Ignoring "version" because "skip_install" was true!
Action YAML
Log output
Additional information
No response