blob: b0eaddd7f3871068831574086bdbef01cbbc252f (
plain)
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
|
name: format project
on:
workflow_call:
workflow_dispatch:
permissions:
contents: write
jobs:
cargo-fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- name: run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all
- uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: "chore: fmt rust files"
nix-fmt:
runs-on: ubuntu-latest
needs: cargo-fmt
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v21
- run: nix fmt
- uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: "chore: fmt nix files"
|