Skip to content

Commit 2bbe24e

Browse files
committed
Compare semver to latest tag
1 parent 4cbd583 commit 2bbe24e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/semver.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ jobs:
3636
token: ${{ secrets.GITHUB_TOKEN }}
3737

3838
- name: Check semver
39-
env:
40-
BASE_REF: ${{ github.event.pull_request.base.ref || github.event.repository.default_branch }}
4139
run: |
40+
LATEST_TAG_COMMIT=$(git rev-list --tags --max-count=1)
4241
# shellcheck disable=SC2086
43-
cargo semver-checks --default-features --baseline-rev "origin/$BASE_REF"
42+
cargo semver-checks --default-features --baseline-rev "$LATEST_TAG_COMMIT"

0 commit comments

Comments
 (0)