Skip to content

Commit 63f4e28

Browse files
committed
Use action for semver
1 parent bb77df4 commit 63f4e28

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/semver.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)