From 60ebc0dccbe97eb325596bfcac13decb90648beb Mon Sep 17 00:00:00 2001 From: ganfra Date: Thu, 23 Feb 2023 10:05:45 +0100 Subject: [PATCH] Update build.yml to fix checkout on main --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e529692dd7..308f4c7a87 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,7 +51,7 @@ jobs: - uses: actions/checkout@v3 with: # https://github.com/actions/checkout/issues/881 - ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} + ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} - name: Configure gradle uses: gradle/gradle-build-action@v2 with: