ci: honor breaking semver markers (#922)
This commit is contained in:
parent
0a95c3b608
commit
b79e0d9df3
1 changed files with 12 additions and 2 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
|
@ -80,12 +80,22 @@ jobs:
|
|||
with:
|
||||
tool: cargo-semver-checks
|
||||
|
||||
- name: Determine semver release type
|
||||
run: |
|
||||
if git log --format=%B \
|
||||
${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} \
|
||||
| grep -Eq '(^[A-Za-z0-9_-]+(\([^)]*\))?!:|^BREAKING[ -]CHANGE:)'; then
|
||||
echo "SEMVER_RELEASE_TYPE=major" >> "$GITHUB_ENV"
|
||||
else
|
||||
echo "SEMVER_RELEASE_TYPE=minor" >> "$GITHUB_ENV"
|
||||
fi
|
||||
|
||||
- name: Check rmcp (default features)
|
||||
run: |
|
||||
cargo semver-checks \
|
||||
--package rmcp \
|
||||
--baseline-rev ${{ github.event.pull_request.base.sha }} \
|
||||
--release-type minor \
|
||||
--release-type "$SEMVER_RELEASE_TYPE" \
|
||||
--only-explicit-features \
|
||||
--features default
|
||||
|
||||
|
|
@ -98,7 +108,7 @@ jobs:
|
|||
cargo semver-checks \
|
||||
--package rmcp \
|
||||
--baseline-rev ${{ github.event.pull_request.base.sha }} \
|
||||
--release-type minor \
|
||||
--release-type "$SEMVER_RELEASE_TYPE" \
|
||||
--only-explicit-features \
|
||||
--features "$FEATURES"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue