This commit is contained in:
Carlos Polop
2026-02-24 21:31:15 +01:00
parent 3cb5411468
commit 98e5e7c3f2
3 changed files with 7 additions and 2 deletions

View File

@@ -140,6 +140,8 @@ jobs:
git checkout -- .github/workflows || true
git clean -fdx -- .github/workflows || true
git reset -- chack_failure_summary.txt chack_prompt.txt chack_failed_steps_logs.txt
# Never include generated regex list updates in automated fixer commits.
git reset -- build_lists/regexes.yaml || true
if git diff --cached --name-only | grep -q '^.github/workflows/'; then
echo "Workflow-file changes are still staged; skipping push without workflows permission."
echo "pushed=false" >> "$GITHUB_OUTPUT"
@@ -163,7 +165,8 @@ jobs:
':(exclude).github/workflows/**' \
':(exclude)chack_failure_summary.txt' \
':(exclude)chack_prompt.txt' \
':(exclude)chack_failed_steps_logs.txt' > /tmp/chack_nonworkflow.patch
':(exclude)chack_failed_steps_logs.txt' \
':(exclude)build_lists/regexes.yaml' > /tmp/chack_nonworkflow.patch
if [ ! -s /tmp/chack_nonworkflow.patch ]; then
echo "Only workflow-file changes were produced; skipping push."
echo "pushed=false" >> "$GITHUB_OUTPUT"