Update gix requirement from 0.68.0 to 0.70.0 #430
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: msrv-badge | |
on: | |
pull_request: | |
push: | |
workflow_dispatch: | |
jobs: | |
create-msrv-badge: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
crates: [function-grep, git-function-history-lib, cargo-function-history, git-function-history-gui, function_history_backend_thread, git_function_history-proc-macro] | |
fail-fast: false | |
container: mendelrubin/cargo-msrv:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: remove Cargo.toml so cargo-msrv doesn't find it | |
run: | | |
rm Cargo.toml | |
ls -l | |
- uses: actions/checkout@v4 | |
- name: Get MSRV and create badge | |
id: get-msrv | |
run: | | |
rm Cargo.toml | |
cd ${{ matrix.crates }} | |
ls -l | |
cargo msrv --output-format minimal > msrv.txt | |
tr -d '\n' < msrv.txt > msrv2.txt | |
cat msrv2.txt | |
echo "msrv=$(cat msrv2.txt)" >> $GITHUB_OUTPUT | |
cargo msrv set $(cat msrv2.txt) | |
- name: Create Badge | |
run: | | |
curl https://img.shields.io/badge/minimum%20rust%20version-${{ steps.get-msrv.outputs.msrv }}-blue.svg > resources/${{ matrix.crates }}_msrv.svg | |
- name: Commit Badge | |
# If there are no changes to the badge this would error out. But it | |
# isn't a problem if there were no changes, so errors are allowed. | |
continue-on-error: true | |
run: | | |
git pull | |
git add resources/${{ matrix.crates }}_msrv.svg | |
git add ${{ matrix.crates }}/Cargo.toml | |
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 |