File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,23 +20,11 @@ jobs:
2020 run :
2121 shell : bash
2222 steps :
23- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24- with :
25- persist-credentials : false
26- fetch-depth : 0
27-
28- - uses : mozilla/actions/rust@25cb84d060946c0ad6d2c3f79da479b16d180d71 # v1.1.0
29- with :
30- tools : cargo-semver-checks
31- token : ${{ github.token }}
23+ - name : Get latest tags
24+ id : tag
25+ run : |
26+ echo "commit=$(git rev-list --tags --max-count=1)" >> "$GITHUB_OUTPUT"
3227
33- - uses : mozilla/actions/nss@25cb84d060946c0ad6d2c3f79da479b16d180d71 # v1.1.0
28+ - uses : mozilla/actions/semver@44afdbc1da082e73e6cff54127828583dc23ce12
3429 with :
35- version-file : min_version.txt
36- token : ${{ secrets.GITHUB_TOKEN }}
37-
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"
30+ base-ref : ${{ steps.tag.outputs.commit }}
You can’t perform that action at this time.
0 commit comments