The "master" branch is no longer the default branch name for actions/checkout
ErisDS opened this issue · comments
Hannah Wolfe commented
Issue Summary
When using this action, a warning is shown:
The "master" branch is no longer the default branch name for actions/checkout
Please pin to a specific version or use "main".
Reproduction
- Create an event that triggers a theme deploy, e.g. push to your default branch
- View the annotations on the deploy action
This issue is caused because we documented calling
- uses: actions/checkout@master
As one of the steps in our deploy workflow file deploy-theme.yml
This line (roughly line 10) needs changing from - uses: actions/checkout@master
to - uses: actions/checkout@v2
Hannah Wolfe commented