forked from rolldown/rolldown
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.03 KB
/
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
name: 'autofix.ci'
on:
# https://github.com/actions/labeler?tab=readme-ov-file#permissions
pull_request_target:
types: [labeled]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.ref_name != 'main' }}
jobs:
autofix_ci:
runs-on: ubuntu-latest
if: github.event.label.name == 'autofix.ci'
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-node
- uses: ./.github/actions/setup-rust
with:
tools: just, taplo-cli, cargo-shear
cache-key: debug-build
components: clippy rustfmt
- run: |
just fix
just ued
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
- uses: actions-cool/issues-helper@v3
with:
actions: 'remove-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
labels: 'autofix.ci'