-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 899 Bytes
/
rust-fmt.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: rust-fmt
on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '33 15 * * 3'
jobs:
rust-clippy-analyze:
name: Run cargo fmt
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated commit for `cargo fmt`
branch: main
commit_options: '--no-verify --signoff'
commit_author: Format Bot <[email protected]>
status_options: '--untracked-files=no'