Skip to content

Commit d35a6cd

Browse files
ci: Add autofix.yml (#1991)
1 parent 66c9dcd commit d35a6cd

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

.github/workflows/autofix.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: autofix.ci # needed to securely identify the workflow
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main, alpha, beta]
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
autofix:
17+
name: autofix
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
- name: Setup Tools
23+
uses: tanstack/config/.github/setup@main
24+
- name: Fix formatting
25+
run: pnpm prettier:write
26+
- name: Apply fixes
27+
uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
28+
with:
29+
commit-message: 'ci: apply automated fixes'

scripts/config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,12 @@ export const branchConfigs = {
5858
main: {
5959
prerelease: false,
6060
},
61-
next: {
61+
alpha: {
6262
prerelease: true,
6363
},
6464
beta: {
6565
prerelease: true,
6666
},
67-
alpha: {
68-
prerelease: true,
69-
},
7067
}
7168

7269
const __dirname = fileURLToPath(new URL('.', import.meta.url))

0 commit comments

Comments
 (0)