-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (56 loc) · 1.58 KB
/
autofix.yml
File metadata and controls
68 lines (56 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# name must be autofix.ci for security reasons
# ref: https://autofix.ci/security
name: autofix.ci
on:
pull_request:
branches:
- main
workflow_dispatch:
permissions: {}
defaults:
run:
shell: bash
jobs:
autofix:
name: Autofix
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions:
contents: read # for checkout
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install mise
uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
with:
version: 2026.4.20
- name: Re-install Rust
# cache doesn't work well with rust
run: mise install rust --force
- name: Run autofix
run: |
mise run render --continue-on-error
mise run check --continue-on-error
continue-on-error: true
env:
GITHUB_TOKEN: ${{ github.token }}
- name: autofix.ci
uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a # v1.3.4
with:
commit-message: "style: apply automated fixes"
# disable fail-fast to avoid notifications of canceled workflows
fail-fast: false
actions-timeline:
name: Generate Actions Timeline
needs:
- autofix
if: ${{ !cancelled() }}
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions:
actions: read
steps:
- name: actions-timeline
uses: Kesin11/actions-timeline@44c9c178ffb2fb1d9859614a3ffa79ccfb77565e # v3.1.0