File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,18 +25,16 @@ jobs:
2525 persist-credentials : false
2626 fetch-depth : 0
2727
28- - uses : mozilla/actions/rust@25cb84d060946c0ad6d2c3f79da479b16d180d71 # v1.1.0
29- with :
30- tools : cargo-semver-checks
31- token : ${{ github.token }}
28+ - name : Get latest tag
29+ id : tag
30+ run : |
31+ echo "ref=$(git describe --tags --abbrev=0)" >> "$GITHUB_OUTPUT"
3232
3333 - uses : mozilla/actions/nss@25cb84d060946c0ad6d2c3f79da479b16d180d71 # v1.1.0
3434 with :
3535 version-file : min_version.txt
3636 token : ${{ secrets.GITHUB_TOKEN }}
3737
38- - name : Check semver
39- run : |
40- LATEST_TAG_COMMIT=$(git rev-list --tags --max-count=1)
41- # shellcheck disable=SC2086
42- cargo semver-checks --default-features --baseline-rev "$LATEST_TAG_COMMIT"
38+ - uses : mozilla/actions/semver@006dc80e7493743d32381f6eceb6d4aebb6e6afa
39+ with :
40+ base-ref : ${{ steps.tag.outputs.ref }}
You can’t perform that action at this time.
0 commit comments