Skip to content

Commit db667e1

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

1 file changed

Lines changed: 6 additions & 18 deletions

File tree

.github/workflows/semver.yml

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

0 commit comments

Comments
 (0)