Skip to content

Commit

Permalink
Update Checkout action default branch
Browse files Browse the repository at this point in the history
GitHub Actions gives a warning that the checkout action no longer has
'master' as the default branch. This is because the checkout actions
repo itself has renamed its default branch from 'master' to 'main'.

The action may eventually break when the 'master' branch option is
no longer supported.

Let's update the CI workflow to use actions/checkout@main instead of
actions/checkout@master, to fix the warning.
  • Loading branch information
wltan authored and damithc committed Dec 14, 2020
1 parent fb67d1f commit 9a69a05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:

steps:
- name: Set up repository
uses: actions/checkout@master
uses: actions/checkout@main

- name: Set up repository
uses: actions/checkout@master
uses: actions/checkout@main
with:
ref: master

Expand Down

0 comments on commit 9a69a05

Please sign in to comment.