We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c3409f commit 61ae08dCopy full SHA for 61ae08d
.github/workflows/main.yml
@@ -19,12 +19,16 @@ jobs:
19
steps:
20
- id: check
21
run: |
22
- if [[ "${{ contains(github.event.head_commit.message, 'ci skip') || contains(github.event.head_commit.message, 'skip ci') }}" == "true" ]]; then
+ COMMIT_MSG="${{ github.event.head_commit.message }}${{ github.event.pull_request.title }}"
23
+ echo "Commit message: $COMMIT_MSG"
24
+ if [[ "$COMMIT_MSG" == *"ci skip"* ]] || [[ "$COMMIT_MSG" == *"skip ci"* ]]; then
25
echo "skip=true" >> $GITHUB_OUTPUT
26
+ echo "Skipping CI"
27
else
28
echo "skip=false" >> $GITHUB_OUTPUT
29
+ echo "Running CI"
30
fi
-
31
+
32
test:
33
needs: check-skip
34
if: ${{ needs.check-skip.outputs.skip == 'false' && github.event.action != 'closed' }}
0 commit comments