We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1806540 commit 1b214ebCopy full SHA for 1b214eb
.github/workflows/release.yml
@@ -9,9 +9,28 @@ on:
9
- completed
10
11
jobs:
12
- release:
+ check-commit:
13
runs-on: ubuntu-latest
14
if: ${{ github.event.workflow_run.conclusion == 'success' }}
15
+ outputs:
16
+ skip: ${{ steps.commit-message.outputs.skip }}
17
+ steps:
18
+ - name: Checkout
19
+ uses: actions/checkout@v3
20
+
21
+ - name: Get commit message
22
+ id: commit-message
23
+ run: |
24
+ MESSAGE=$(git log --format=%B -n 1 $(git log -1 --pretty=format:"%h"))
25
26
+ if [[ $MESSAGE == "chore: release "* ]]; then
27
+ echo "skip=true" >> $GITHUB_OUTPUT
28
+ fi
29
30
+ release:
31
+ runs-on: ubuntu-latest
32
+ needs: check-commit
33
+ if: ${{ needs.check-commit.outputs.skip != 'true' }}
34
steps:
35
- name: Checkout
36
uses: actions/checkout@v3
0 commit comments