-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 953 Bytes
/
msrv-badge.yml
File metadata and controls
31 lines (29 loc) · 953 Bytes
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
name: Generate MSRV Badge
on:
schedule:
# Once every week at midnight UTC
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
make-badge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Get Minimum Supported Rust Version
uses: spenserblack/actions-msrv@v0.4
id: get-msrv
timeout-minutes: 60
- name: Create Badge
run: curl https://img.shields.io/badge/rustc-${{ steps.get-msrv.outputs.msrv }}%2B-blue > ./assets/msrv-badge.svg
- name: Commit Badge
continue-on-error: true
run: |
git status
git pull --ff-only
git add ./assets/msrv-badge.svg
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git commit -m "Update msrv badge [Skip CI]"
git push