Skip to content

Commit 61ae08d

Browse files
ci skip
1 parent 0c3409f commit 61ae08d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@ jobs:
1919
steps:
2020
- id: check
2121
run: |
22-
if [[ "${{ contains(github.event.head_commit.message, 'ci skip') || contains(github.event.head_commit.message, 'skip ci') }}" == "true" ]]; then
22+
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
2325
echo "skip=true" >> $GITHUB_OUTPUT
26+
echo "Skipping CI"
2427
else
2528
echo "skip=false" >> $GITHUB_OUTPUT
29+
echo "Running CI"
2630
fi
27-
31+
2832
test:
2933
needs: check-skip
3034
if: ${{ needs.check-skip.outputs.skip == 'false' && github.event.action != 'closed' }}

0 commit comments

Comments
 (0)