Skip to content

Commit

Permalink
ci: Add autofix.yml (#870)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Jul 19, 2024
1 parent 4fb15b4 commit a6313b7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: autofix.ci # needed to securely identify the workflow

on:
pull_request:
push:
branches: [main, alpha, beta]

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
autofix:
name: autofix
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Tools
uses: tanstack/config/.github/setup@629cd3152485cbe985f5a7e66d370c858132c517
- name: Fix formatting
run: pnpm prettier:write
- name: Apply fixes
uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
with:
commit-message: 'ci: apply automated fixes'
5 changes: 1 addition & 4 deletions scripts/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,12 @@ export const branchConfigs = {
main: {
prerelease: false,
},
next: {
alpha: {
prerelease: true,
},
beta: {
prerelease: true,
},
alpha: {
prerelease: true,
},
}

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

0 comments on commit a6313b7

Please sign in to comment.