From d8a2de03b7c6061ff894b680fc42ab7adf5a5b20 Mon Sep 17 00:00:00 2001 From: Ben Pennell Date: Tue, 6 Apr 2021 13:48:35 -0400 Subject: [PATCH] Fetch all branches and tags to support git tests, and explicitly checkout master branch so that it is available in the local repo --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1b2158b339..9a9f08fcdc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,12 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 + with: + fetch-depth: 0 + - run: | + git fetch origin master + git checkout -b master + git checkout ${{ github.event.pull_request.head.sha }} - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: