Topgrade v16.0.1 #3
Workflow file for this run
This file contains 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
on: | |
release: | |
types: [published, edited] | |
name: Check SemVer compliance | |
jobs: | |
prepare: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2022-08-03 | |
override: true | |
components: rustfmt, clippy | |
semver: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: install | |
args: --git https://github.com/rust-lang/rust-semverver | |
- run: eval "current_version=$(grep -e '^version = .*$' Cargo.toml | cut -d ' ' -f 3)" | |
- run: cargo semver | tee semver_out | |
- run: (head -n 1 semver_out | grep "\-> $current_version") || (echo "versioning mismatch" && return 1) |