Skip to content

Commit ac56e47

Browse files
committed
Use action for semver
1 parent bb77df4 commit ac56e47

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

.github/workflows/semver.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,16 @@ 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
3328
- uses: mozilla/actions/nss@25cb84d060946c0ad6d2c3f79da479b16d180d71 # v1.1.0
3429
with:
3530
version-file: min_version.txt
3631
token: ${{ secrets.GITHUB_TOKEN }}
3732

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"
33+
- uses: mozilla/actions/semver@44afdbc1da082e73e6cff54127828583dc23ce12
34+
with:
35+
base-ref: ${{ steps.tag.outputs.commit }}

0 commit comments

Comments
 (0)