We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85f2eee commit bd0da67Copy full SHA for bd0da67
1 file changed
.github/workflows/ci.yml
@@ -9,6 +9,8 @@ on:
9
jobs:
10
test:
11
runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: write
14
steps:
15
- uses: actions/checkout@v4
16
@@ -19,6 +21,18 @@ jobs:
19
21
- name: Install dependencies
20
22
run: bun install
23
24
+ - name: Auto-fix linter issues
25
+ if: github.event_name == 'push' && github.actor != 'github-actions[bot]'
26
+ run: |
27
+ bun run lint --fix
28
+ if ! git diff --quiet; then
29
+ git config user.name "github-actions[bot]"
30
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
31
+ git add -A
32
+ git commit -m "chore(ci): auto-fix lint"
33
+ git push
34
+ fi
35
+
36
- name: Run linter
37
run: bun run lint:all
38
0 commit comments