Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
28 lines
758 B
YAML
28 lines
758 B
YAML
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)
|