fix(ci): don't cancel CI on autofix pushes, guard format step

This commit is contained in:
Thomas Camlong committed 2026-07-15 16:47:28 +02:00
1 parent 8331a58471
commit 27a6467896
1 file changed
+2 -2
+2 -2
View File
@@ -35,7 +35,7 @@ permissions:
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || inputs.pr_number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
cancel-in-progress: false
env:
FORCE_COLOR: 3
@@ -91,7 +91,7 @@ jobs:
echo "count=$(wc -l < /tmp/changed-files | tr -d '[:space:]')" >> $GITHUB_OUTPUT
- name: Check formatting on changed files
if: steps.changed.outputs.count != '0'
if: steps.changed.outcome == 'success' && steps.changed.outputs.count != '0'
continue-on-error: true
run: xargs -r -a /tmp/changed-files pnpm exec oxfmt --check