File tree 7 files changed +12
-15
lines changed
7 files changed +12
-15
lines changed Original file line number Diff line number Diff line change 1
- name : Minimum Rust Version
1
+ name : Generate MSRV Badge
2
2
on :
3
- push :
4
- branches : [ main ]
3
+ release :
4
+ types : [published ]
5
5
paths :
6
6
- Cargo.toml
7
7
- ' src/**'
@@ -13,20 +13,18 @@ jobs:
13
13
14
14
steps :
15
15
- uses : actions/checkout@v2
16
- - name : Get Minimum Rust Version
16
+ - name : Get Minimum Supported Rust Version
17
17
uses :
spenserblack/[email protected]
18
18
id : get-msrv
19
19
- name : Create Badge
20
- run : curl https://img.shields.io/badge/minimum%20rust%20version -${{ steps.get-msrv.outputs.msrv }}-blue > ./assets/rust-version .svg
20
+ run : curl https://img.shields.io/badge/rustc -${{ steps.get-msrv.outputs.msrv }}+ -blue > ./assets/msrv-badge .svg
21
21
- name : Commit Badge
22
- # Continue on error in case there are no changes, resulting in empty
23
- # commit. This shouldn't count as a failure.
24
22
continue-on-error : true
25
23
run : |
26
24
git status
27
25
git pull --ff-only
28
- git add ./assets/rust-version .svg
26
+ git add ./assets/msrv-badge .svg
29
27
git config user.name "github-actions[bot]"
30
28
git config user.email "github-actions[bot]@users.noreply.github.com"
31
- git commit -m "Update Rust version badge [Skip CI]"
29
+ git commit -m "Update msrv badge [Skip CI]"
32
30
git push
Original file line number Diff line number Diff line change 8
8
<a href =" https://github.com/o2sh/onefetch/wiki/language-Support " ><img src =" assets/language-badge.svg " ></a >
9
9
<a href =" https://github.com/o2sh/onefetch/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22 " ><img src =" https://img.shields.io/github/issues/o2sh/onefetch/help%20wanted?color=green " alt =" help wanted " ></a >
10
10
<a href =" ./LICENSE.md " ><img src =" https://img.shields.io/badge/license-MIT-blue.svg " ></a >
11
- <img src =" assets/rust-version .svg " >
11
+ <img src =" assets/msrv-badge .svg " >
12
12
</p >
13
13
14
14
<p align =" center " >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
<a href =" https://github.com/o2sh/onefetch/wiki/language-Support " ><img src =" ../assets/language-badge.svg " ></a >
9
9
<a href =" https://github.com/o2sh/onefetch/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22 " ><img src =" https://img.shields.io/github/issues/o2sh/onefetch/help%20wanted?color=green " alt =" help wanted " ></a >
10
10
<a href =" ./LICENSE.md " ><img src =" https://img.shields.io/badge/license-MIT-blue.svg " ></a >
11
- <img src =" assets/rust-version .svg " >
11
+ <img src =" ../ assets/msrv-badge .svg" >
12
12
</p >
13
13
14
14
<img src =" ../assets/screenshot-1.png " align =" right " height =" 240px " >
Original file line number Diff line number Diff line change 10
10
<a href =" https://github.com/o2sh/onefetch/wiki/language-Support " ><img src =" ../assets/language-badge.svg " ></a >
11
11
<a href =" https://github.com/o2sh/onefetch/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22 " ><img src =" https://img.shields.io/github/issues/o2sh/onefetch/help%20wanted?color=green " alt =" help wanted " ></a >
12
12
<a href =" ./LICENSE.md " ><img src =" https://img.shields.io/badge/license-MIT-blue.svg " ></a >
13
- <img src =" assets/rust-version .svg " >
13
+ <img src =" ../ assets/msrv-badge .svg" >
14
14
</p >
15
15
16
16
<img src =" ../assets/screenshot-1.png " align =" left " height =" 240px " >
Original file line number Diff line number Diff line change 8
8
<a href =" https://github.com/o2sh/onefetch/wiki/language-Support " ><img src =" ../assets/language-badge.svg " ></a >
9
9
<a href =" https://github.com/o2sh/onefetch/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22 " ><img src =" https://img.shields.io/github/issues/o2sh/onefetch/help%20wanted?color=green " alt =" help wanted " ></a >
10
10
<a href =" ./LICENSE.md " ><img src =" https://img.shields.io/badge/license-MIT-blue.svg " ></a >
11
- <img src =" assets/rust-version .svg " >
11
+ <img src =" ../ assets/msrv-badge .svg" >
12
12
</p >
13
13
14
14
<img src =" ../assets/screenshot-1.png " align =" right " height =" 240px " >
Original file line number Diff line number Diff line change 9
9
<a href =" https://github.com/o2sh/onefetch/wiki/language-Support " ><img src =" ../assets/language-badge.svg " ></a >
10
10
<a href =" https://github.com/o2sh/onefetch/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22 " ><img src =" https://img.shields.io/github/issues/o2sh/onefetch/help%20wanted?color=green " alt =" help wanted " ></a >
11
11
<a href =" ./LICENSE.md " ><img src =" https://img.shields.io/badge/license-MIT-blue.svg " ></a >
12
- <img src =" assets/rust-version .svg " >
12
+ <img src =" ../ assets/msrv-badge .svg" >
13
13
</p >
14
14
15
15
<img src =" ../assets/screenshot-1.png " align =" right " height =" 240px " >
You can’t perform that action at this time.
0 commit comments