Update build.yml to fix checkout on main

This commit is contained in:
ganfra 2023-02-23 10:05:45 +01:00 committed by GitHub
parent 664fa7f952
commit 60ebc0dccb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
# https://github.com/actions/checkout/issues/881 # 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 - name: Configure gradle
uses: gradle/gradle-build-action@v2 uses: gradle/gradle-build-action@v2
with: with: