我正在使用 Github 操作將我的應用程式部署到谷歌云,它給了我以下錯誤 -
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.
uj5u.com熱心網友回復:
第 3 方的行動正在遠離使用名為master.
代替:
uses: google-github-actions/setup-gcloud@master
將 YAML 中的參考更改為:
uses: google-github-actions/setup-gcloud@v0
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/449825.html
