Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: check semver on labelling PRs #3224

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/semver.yml
@@ -0,0 +1,49 @@
name: Semver

on:
pull_request:
types: [labeled]

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.label.name }}
cancel-in-progress: true

jobs:
check-semver-patch:
name: Check semver (patch)
runs-on: ubuntu-latest
if: github.event.label.name == 'B-semver-patch'
steps:
- uses: actions/checkout@v4

- name: Check semver (patch)
uses: obi1kenobi/cargo-semver-checks-action@v2.1
with:
release-type: patch

check-semver-minor:
name: Check semver (minor)
runs-on: ubuntu-latest
if: github.event.label.name == 'B-semver-minor'
steps:
- uses: actions/checkout@v4

- name: Check semver (minor)
uses: obi1kenobi/cargo-semver-checks-action@v2.1
with:
release-type: minor

check-semver-major:
name: Check semver (major)
runs-on: ubuntu-latest
if: github.event.label.name == 'B-semver-major'
steps:
- uses: actions/checkout@v4

- name: Check semver (major)
uses: obi1kenobi/cargo-semver-checks-action@v2.1
with:
release-type: major