Open History to see the last commit
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@v6.0.2
30 - name: Setup Tools
31 uses: TanStack/config/.github/setup@main
32 - name: Fix formatting
33 run: pnpm format
34 - name: Generate Docs
35 if: ${{ github.event_name == 'push' || github.event.inputs.generate-docs == true }}
36 run: pnpm generate-docs
37 - name: Apply fixes
38 uses: autofix-ci/action@7a166d7532b277f34e16238930461bf77f9d7ed8
39 with:
40 commit-message: 'ci: apply automated fixes and generate docs'