Skip to content

Commit e42dbb4

Browse files
committed
msrv badge only on CD + renaming + fix paths
1 parent 721d243 commit e42dbb4

File tree

7 files changed

+12
-15
lines changed

7 files changed

+12
-15
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: Minimum Rust Version
1+
name: Generate MSRV Badge
22
on:
3-
push:
4-
branches: [ main ]
3+
release:
4+
types: [published]
55
paths:
66
- Cargo.toml
77
- 'src/**'
@@ -13,20 +13,18 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v2
16-
- name: Get Minimum Rust Version
16+
- name: Get Minimum Supported Rust Version
1717
uses: spenserblack/[email protected]
1818
id: get-msrv
1919
- 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
2121
- 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.
2422
continue-on-error: true
2523
run: |
2624
git status
2725
git pull --ff-only
28-
git add ./assets/rust-version.svg
26+
git add ./assets/msrv-badge.svg
2927
git config user.name "github-actions[bot]"
3028
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]"
3230
git push

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<a href="https://github.com/o2sh/onefetch/wiki/language-Support"><img src="assets/language-badge.svg"></a>
99
<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>
1010
<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">
1212
</p>
1313

1414
<p align="center">

assets/rust-version.svg

-1
This file was deleted.

docs/README.cn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<a href="https://github.com/o2sh/onefetch/wiki/language-Support"><img src="../assets/language-badge.svg"></a>
99
<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>
1010
<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">
1212
</p>
1313

1414
<img src="../assets/screenshot-1.png" align="right" height="240px">

docs/README.fa.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<a href="https://github.com/o2sh/onefetch/wiki/language-Support"><img src="../assets/language-badge.svg"></a>
1111
<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>
1212
<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">
1414
</p>
1515

1616
<img src="../assets/screenshot-1.png" align="left" height="240px">

docs/README.ja.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<a href="https://github.com/o2sh/onefetch/wiki/language-Support"><img src="../assets/language-badge.svg"></a>
99
<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>
1010
<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">
1212
</p>
1313

1414
<img src="../assets/screenshot-1.png" align="right" height="240px">

docs/README.ru.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<a href="https://github.com/o2sh/onefetch/wiki/language-Support"><img src="../assets/language-badge.svg"></a>
1010
<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>
1111
<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">
1313
</p>
1414

1515
<img src="../assets/screenshot-1.png" align="right" height="240px">

0 commit comments

Comments
 (0)