Skip to content

📝 define MSRV

📝 define MSRV #7

Workflow file for this run

name: pr
on:
pull_request:
permissions:
pull-requests: write
jobs:
msrv-changes:
runs-on: ubuntu-latest
steps:
- uses: baptiste0928/[email protected]
with:
crate: cargo-msrv
- uses: actions/[email protected]
with:
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- id: msrv
run: |
cargo msrv list 2> result.txt
echo 'The MSRV will not change.' > message.md
echo "new=$(grep -E '[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' result.txt | tail -n 1 | cut -d \ -f 2)" >> "$GITHUB_OUTPUT"
echo "current=$(cut -d \" -f 2 < .clippy.toml)" >> "$GITHUB_OUTPUT"
- if: steps.msrv.outputs.new != steps.msrv.outputs.current
run: |
echo 'Please update the MSRV to ${{ steps.msrv.outputs.new }}.' \
> message.md
- uses: thollander/[email protected]
with:
comment_tag: msrv-changes
filePath: message.md