From 4b3a66b9e2909fc6c07ce9fc6ce2f924080d2088 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Sat, 23 Mar 2024 19:44:07 +0100 Subject: [PATCH] GitHub Actions: Checkout branch instead of SHA The default behavior breaks `./scripts/publish` as the SHA checkout does not display history with `git log ...`. --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f42ba18..21bc4d3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,6 +22,8 @@ jobs: runs-on: macos-14 steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.ref }} - name: Set up JDK 17 uses: actions/setup-java@v4 with: @@ -51,6 +53,8 @@ jobs: SONATYPE_GPG_KEY_PASSWORD: ${{ secrets.SONATYPE_GPG_KEY_PASSWORD }} steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.ref }} - name: Set up JDK 17 uses: actions/setup-java@v4 with: