Skip to content

Commit 020443c

Browse files
committed
Run semver CI on demand
1 parent 4883d2d commit 020443c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/semver.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Semver compliance
2+
env:
3+
CI: true
4+
on:
5+
pull_request:
6+
types: [ labeled, synchronize, opened, reopened ]
7+
8+
jobs:
9+
semver-compliance: # This job uses the latest published crate as baseline for comparison.
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 10
12+
if: ${{ github.event.label.name == 'semver-check' || contains(github.event.pull_request.labels.*.name, 'semver-check') }}
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
submodules: true
17+
- name: Install stable
18+
uses: dtolnay/rust-toolchain@stable
19+
with:
20+
components: rustfmt
21+
- name: cargo-semver-checks
22+
uses: obi1kenobi/cargo-semver-checks-action@v2.3

0 commit comments

Comments
 (0)