Skip to content

Commit 5ac0c22

Browse files
committed
ci: enable autofix.ci
1 parent 34d2c88 commit 5ac0c22

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

‎.github/workflows/autofix.yaml‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: autofix.ci
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
concurrency:
10+
group: autofix-${{ github.event.pull_request.number }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
autofix:
15+
runs-on: blacksmith-32vcpu-ubuntu-2404
16+
timeout-minutes: 20
17+
steps:
18+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
19+
with:
20+
ref: ${{ github.event.pull_request.head.sha }}
21+
persist-credentials: false
22+
- uses: ./.github/actions/setup-nix-cache
23+
- name: Apply formatting and lint fixes
24+
run: |
25+
nix fmt -- --no-cache
26+
# autofix.ci rejects the entire fix if it contains a .github path.
27+
git restore --worktree -- .github
28+
- name: Push fixes with autofix.ci
29+
uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a # v1.3.4
30+
with:
31+
fail-fast: false
32+
commit-message: 'chore: format'

0 commit comments

Comments
 (0)