Skip to content

Commit

Permalink
test skip-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
landmanbester committed Dec 11, 2024
1 parent 0e3cdc7 commit eb1a15c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
run: ${{ steps.check.outputs.should_run }}
steps:
- id: check
shell: bash
run: |
message="${{ github.event.head_commit.message }}"
message="${message,,}" # Convert to lowercase for case-insensitive matching
Expand All @@ -35,14 +36,17 @@ jobs:
should_run=true
for pattern in "${skip_patterns[@]}"; do
if [[ $message == *"$pattern"* ]]; then
should_run=false
echo "Testing pattern: '$pattern'"
if echo "$message" | grep -q "$pattern"; then
echo "MATCH FOUND for pattern: '$pattern'"
should_run="false"
break
else
echo "No match for pattern: '$pattern'"
fi
done
echo "Skip patterns: $skip_patterns"
echo "Final decision: $should_run"
echo "Should run: $should_run"
echo "should_run=$should_run" >> $GITHUB_OUTPUT
test:
Expand Down

0 comments on commit eb1a15c

Please sign in to comment.