From eb1a15c4f1f56f105d451e8b7c9123a95e50a7b8 Mon Sep 17 00:00:00 2001 From: landmanbester Date: Wed, 11 Dec 2024 18:47:05 +0200 Subject: [PATCH] test skip-ci --- .github/workflows/ci.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f3e8c57..4f081ba3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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: