Skip to content

Commit f491d39

Browse files
committed
👷 Auto-fix commits and pull requests by coworkers
1 parent 0a51dbf commit f491d39

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

Diff for: .github/workflows/fix.yaml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Fix
2+
3+
on:
4+
push:
5+
branches: main
6+
pull_request:
7+
branches: main
8+
9+
jobs:
10+
fix:
11+
runs-on: ubuntu-latest
12+
13+
permissions:
14+
contents: write
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: pnpm/action-setup@v4
19+
with:
20+
version: latest
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: latest
24+
cache: pnpm
25+
- run: pnpm install
26+
- run: pnpm run lint:fix
27+
28+
- uses: qoomon/actions--create-commit@v1
29+
id: actions--create-commit
30+
with:
31+
message: |
32+
🎨 pnpm run lint:fix
33+
34+
[dependabot skip]
35+
skip-empty: true
36+
token: ${{ secrets.GITHUB_TOKEN }}
37+
38+
- if: steps.actions--create-commit.outputs.commit != null
39+
run: git push

0 commit comments

Comments
 (0)