Skip to content

Ticket 64/work

Ticket 64/work #680

Workflow file for this run

name: Check PR

Check warning on line 1 in .github/workflows/check.yml

View workflow run for this annotation

GitHub Actions / Check PR

Workflow execution policy warning (evaluate mode)

On November 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
- labeled
- unlabeled
branches:
- main
concurrency:
group: check-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
pull-requests: write
jobs:
check:
runs-on: ubuntu-latest
steps:
- id: bump
uses: zwaldowski/match-label-action@v1
with:
allowed: major,minor,patch
- uses: zwaldowski/semver-release-action@v6
with:
dry_run: true
bump: ${{ steps.bump.outputs.match }}
github_token: ${{ secrets.GITHUB_TOKEN }}
comment:
needs: check
runs-on: ubuntu-latest
if: failure()
steps:
- uses: thollander/actions-comment-pull-request@v3
with:
message: "Please apply one of the following labels to the PR: `patch`, `minor`, or `major`. See [CONTRIBUTING.md](https://github.com/${{ github.repository }}/blob/main/CONTRIBUTING.md) for details."