-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 949 Bytes
/
autofix.yml
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
# 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:
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions:
contents: read # for checkout
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install mise
uses: jdx/mise-action@5bb8f8c1911837cf42064e6490e7634fc842ee7e # v2.1.8
with:
version: 2024.12.8
cache_save: ${{ github.ref_name == 'main' }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Run autofix
run: mise run check
- name: autofix.ci
uses: autofix-ci/action@2891949f3779a1cafafae1523058501de3d4e944 # v1.3.1
with:
commit-message: 'ci: apply automated fixes'