Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

autofix.yml

40 lines1.1 KB

1name: autofix.ci # needed to securely identify the workflow
2​
3on:
4 pull_request:
5 push:
6 branches: [main, alpha, beta]
7 workflow_dispatch:
8 inputs:
9 generate-docs:
10 description: 'Generate docs'
11 required: false
12 default: false
13 type: boolean
14​
15concurrency:
16 group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
17 cancel-in-progress: true
18​
19permissions:
20 contents: read
21​
22jobs:
23 autofix:
24 if: ${{ !contains(github.event.head_commit.message, 'apply automated fixes') }}
25 name: autofix
26 runs-on: ubuntu-latest
27 steps:
28 - name: Checkout
29 uses: actions/checkout@v5.0.0
30 - name: Setup Tools
31 uses: tanstack/config/.github/setup@main
32 - name: Fix formatting
33 run: pnpm prettier:write
34 - name: Generate Docs
35 if: ${{ github.event_name == 'push' || github.event.inputs.generate-docs == true }}
36 run: pnpm docs:generate
37 - name: Apply fixes
38 uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
39 with:
40 commit-message: 'ci: apply automated fixes and generate docs'