Ticket 64/work #680
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check PR | ||
|
Check warning on line 1 in .github/workflows/check.yml
|
||
| 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." | ||