Skip to content

Commit 66c8f57

Browse files
committed
check semver on PR
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
1 parent 35d12a3 commit 66c8f57

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/semver.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Semver check
2+
on:
3+
pull_request: { }
4+
push:
5+
branches: [ "develop" ]
6+
7+
jobs:
8+
semver:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: runs-on/action@v2
12+
with:
13+
sccache: s3
14+
- uses: actions/checkout@v5
15+
- uses: ./.github/actions/setup-rust
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
- run:
19+
echo "BASELINE=$(gh release view --json tagName -t '{{.tagName}}')" >> $GITHUB_OUTPUT
20+
id: latest_release
21+
- name: Check semver
22+
uses: obi1kenobi/cargo-semver-checks-action@v2
23+
with:
24+
baseline-version: '${{ steps.latest_release.outputs.BASELINE}}'

0 commit comments

Comments
 (0)