From d0fae8411e7c0abc4c0932e951a5fdf105db0de2 Mon Sep 17 00:00:00 2001 From: Anton Wilhelm Date: Tue, 10 Dec 2024 11:59:48 +0100 Subject: [PATCH] [skip release] Fix order of steps for skip release Signed-off-by: Anton Wilhelm --- .github/workflows/release.yml | 9 ++++++--- .github/workflows/test.yml | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1bc67bf..53f9092 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,13 +14,16 @@ jobs: if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - - name: Check Skip Commit - id: checkskip - run: if [[ $(git log -1 --pretty=format:"%s") =~ "\[skip release\]" ]]; then false; else true; fi + - uses: actions/checkout@v3 with: ref: master fetch-depth: 0 + + - name: Check Skip Commit + id: checkskip + run: if [[ $(git log -1 --pretty=format:"%s") =~ "\[skip release\]" ]]; then false; else true; fi + - name: Set up JDK 8 if: steps.checkskip.conclusion == 'success' uses: actions/setup-java@v3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ab64a51..2cb060d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-22.04 steps: + - uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha }}