Skip to content

Commit

Permalink
[skip release] Fix order of steps for skip release
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Wilhelm <[email protected]>
  • Loading branch information
devtonhere committed Dec 10, 2024
1 parent 984bb59 commit d0fae84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
runs-on: ubuntu-22.04

steps:

- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
Expand Down

0 comments on commit d0fae84

Please sign in to comment.