I am using Github actions to deploy my application to Google cloud and it gave me following error -
Run google-github-actions/setup-gcloud@master
Warning: google-github-actions/setup-gcloud is pinned at "master". We strongly advise against pinning to "@master" as it may be unstable. Please update your GitHub Action YAML from:
uses: 'google-github-actions/setup-gcloud@master'
to:
uses: 'google-github-actions/setup-gcloud@v0'
Alternatively, you can pin to any git tag or git SHA in the repository.
Error: On 2022-04-05, the default branch will be renamed from "master" to "main". Your action is currently pinned to "@master". Even though GitHub creates redirects for renamed branches, testing found that this rename breaks existing GitHub Actions workflows that are pinned to the old branch name.
CodePudding user response:
That 3rd party action is moving away from the convention of using a branch named master
.
Instead of:
uses: google-github-actions/setup-gcloud@master
Change the reference in your YAML to:
uses: google-github-actions/setup-gcloud@v0