From 9a69a056b7b106d6f420c831dde40cb0d5b48e42 Mon Sep 17 00:00:00 2001 From: wltan <53135010+wltan@users.noreply.github.com> Date: Fri, 4 Dec 2020 22:55:09 +0800 Subject: [PATCH] Update Checkout action default branch 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. --- .github/workflows/gradle.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index ce1a0f882e0..07acb40a13d 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -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