File tree Expand file tree Collapse file tree 4 files changed +17
-17
lines changed Expand file tree Collapse file tree 4 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 11
11
- " **/Cargo.toml"
12
12
- " **/Cargo.lock"
13
13
schedule :
14
- # Once week at midnight UTC
14
+ # Once a week at midnight UTC
15
15
- cron : " 0 0 * * 0"
16
16
workflow_dispatch :
17
17
18
18
jobs :
19
- sec :
19
+ audit :
20
20
name : Security audit
21
21
runs-on : ubuntu-latest
22
22
steps :
Original file line number Diff line number Diff line change @@ -14,13 +14,11 @@ jobs:
14
14
runs-on : ${{ matrix.os }}
15
15
16
16
steps :
17
+ - name : Checkout
17
18
- uses : actions/checkout@v4
18
19
19
20
- name : Install Rust
20
- uses : dtolnay/rust-toolchain@v1
21
- with :
22
- toolchain : stable
23
- components : clippy
21
+ uses : actions-rust-lang/setup-rust-toolchain@v1
24
22
25
23
- name : Build
26
24
run : make build
@@ -47,15 +45,15 @@ jobs:
47
45
env :
48
46
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49
47
50
- - name : Bump homebrew-core formula
48
+ - name : Publish to homebrew
51
49
uses : mislav/bump-homebrew-formula-action@v3
52
50
if : matrix.os == 'macos-latest'
53
51
env :
54
52
COMMITTER_TOKEN : ${{ secrets.BREW_TOKEN }}
55
53
with :
56
54
formula-name : onefetch
57
55
58
- - name : Publish executable to WinGet
56
+ - name : Publish to WinGet
59
57
uses : vedantmgoyal9/winget-releaser@main
60
58
if : matrix.os == 'windows-latest'
61
59
with :
@@ -69,13 +67,11 @@ jobs:
69
67
runs-on : ubuntu-latest
70
68
71
69
steps :
70
+ - name : Checkout
72
71
- uses : actions/checkout@v4
73
72
74
73
- name : Install Rust
75
- uses : dtolnay/rust-toolchain@v1
76
- with :
77
- toolchain : stable
78
- components : clippy
74
+ uses : actions-rust-lang/setup-rust-toolchain@v1
79
75
80
76
- name : Publish to crates.io (ascii)
81
77
env :
Original file line number Diff line number Diff line change 1
1
name : Generate Language Badge
2
2
on :
3
3
schedule :
4
- # Once week at midnight UTC
4
+ # Once a week at midnight UTC
5
5
- cron : " 0 0 * * 0"
6
6
workflow_dispatch :
7
7
@@ -10,14 +10,15 @@ jobs:
10
10
runs-on : ubuntu-latest
11
11
12
12
steps :
13
+ - name : Checkout
13
14
- uses : actions/checkout@v4
14
15
with :
15
16
ref : ${{ github.event.pull_request.head.ref }}
16
17
token : ${{ secrets.BADGE_TOKEN }}
18
+
17
19
- name : Install Rust
18
- uses : dtolnay/rust-toolchain@v1
19
- with :
20
- toolchain : stable
20
+ uses : actions-rust-lang/setup-rust-toolchain@v1
21
+
21
22
- name : Get Language Count
22
23
id : vars
23
24
run : echo "::set-output name=language_count::$(cargo run -- --languages | wc -l)"
Original file line number Diff line number Diff line change 1
1
name : Generate MSRV Badge
2
2
on :
3
3
schedule :
4
- # Once every week at midnight UTC
4
+ # Once a week at midnight UTC
5
5
- cron : " 0 0 * * 0"
6
6
workflow_dispatch :
7
7
@@ -10,14 +10,17 @@ jobs:
10
10
runs-on : ubuntu-latest
11
11
12
12
steps :
13
+ - name : Checkout
13
14
- uses : actions/checkout@v4
14
15
with :
15
16
ref : ${{ github.event.pull_request.head.ref }}
16
17
token : ${{ secrets.BADGE_TOKEN }}
18
+
17
19
- name : Get Minimum Supported Rust Version
18
20
uses :
spenserblack/[email protected]
19
21
id : get-msrv
20
22
timeout-minutes : 60
23
+
21
24
- name : Create Badge
22
25
run : curl https://img.shields.io/badge/rustc-${{ steps.get-msrv.outputs.msrv }}%2B-blue > ./assets/msrv-badge.svg
23
26
- name : Commit Badge
You can’t perform that action at this time.
0 commit comments