diff --git a/.github/workflows/ci-master-failure-chack-agent-pr.yml b/.github/workflows/ci-master-failure-chack-agent-pr.yml index bd01e23..d51b23d 100644 --- a/.github/workflows/ci-master-failure-chack-agent-pr.yml +++ b/.github/workflows/ci-master-failure-chack-agent-pr.yml @@ -125,7 +125,9 @@ jobs: rm -f chack_failure_summary.txt chack_prompt.txt chack_failed_steps_logs.txt git add -A # Avoid workflow-file pushes with token scopes that cannot write workflows. - git restore --staged --worktree .github/workflows || true + git reset -- .github/workflows || true + git checkout -- .github/workflows || true + git clean -fd -- .github/workflows || true git reset -- chack_failure_summary.txt chack_prompt.txt chack_failed_steps_logs.txt if git diff --cached --quiet; then echo "No committable changes left after filtering." diff --git a/.github/workflows/pr-failure-chack-agent-dispatch.yml b/.github/workflows/pr-failure-chack-agent-dispatch.yml index cf367c7..6555a9b 100644 --- a/.github/workflows/pr-failure-chack-agent-dispatch.yml +++ b/.github/workflows/pr-failure-chack-agent-dispatch.yml @@ -182,7 +182,9 @@ jobs: rm -f chack_failure_summary.txt chack_prompt.txt git add -A # Avoid workflow-file pushes with token scopes that cannot write workflows. - git restore --staged --worktree .github/workflows || true + git reset -- .github/workflows || true + git checkout -- .github/workflows || true + git clean -fd -- .github/workflows || true git reset -- chack_failure_summary.txt chack_prompt.txt if git diff --cached --quiet; then echo "No committable changes left after filtering."