TryGhost / action-deploy-theme

:octocat: Deploy your Ghost theme with Github Actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The "master" branch is no longer the default branch name for actions/checkout

ErisDS opened this issue · comments

Issue Summary

When using this action, a warning is shown:

image

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

Note:

The correct fix for this warning is to change your deploy-theme.yml file to call

- uses: actions/checkout@v2

Instead of

- uses: actions/checkout@master

As shown here and here