From 34a91ce6747eeeb24c493e37efbb2b020358b1e2 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Thu, 23 May 2024 13:18:10 +0200 Subject: [PATCH] Github: Checkout `main` branch instead of ref on publish job To ensure the scripts/publish works as intended. --- .github/workflows/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0700edf..e4a9fc6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,8 +22,6 @@ 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: @@ -55,7 +53,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.ref }} + ref: refs/heads/main - name: Set up JDK 17 uses: actions/setup-java@v4 with: