Skip to content

Commit efba3b0

Browse files
authoredJul 19, 2024··
ci: Add autofix.yml (#5669)
1 parent e420d00 commit efba3b0

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed
 

‎.github/workflows/autofix.yml

+29
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, rc]
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ 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: {
67+
rc: {
6868
prerelease: true,
6969
},
7070
}

0 commit comments

Comments
 (0)
Please sign in to comment.