Skip to content

Commit

Permalink
Make a Github action workflow to enforce a semver PR label is present
Browse files Browse the repository at this point in the history
  • Loading branch information
jcouball committed Dec 30, 2023
1 parent c8e4c88 commit c1e5d41
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,19 @@ on:
types: [opened, synchronize, reopened, labeled, unlabeled]

jobs:
check_for_semver_pr_label:
runs-on: ubuntu-latest

steps:
- name: Check that a semver label is present on the PR
if: github.event_name == 'pull_request'
uses: docker://agilepathway/pull-request-label-checker:latest
with:
one_of: major,minor,patch,trivial
repo_token: ${{ secrets.GITHUB_TOKEN }}

build:
needs: [ check_for_semver_pr_label ]
continue-on-error: true

strategy:
Expand Down Expand Up @@ -44,13 +56,6 @@ jobs:
- name: Run rake
run: bundle exec rake

- name: Check for a semver PR label
if: github.event_name == 'pull_request'
uses: docker://agilepathway/pull-request-label-checker:latest
with:
one_of: major,minor,patch,trivial
repo_token: ${{ secrets.GITHUB_TOKEN }}

coverage:
needs: [ build ]
runs-on: ubuntu-latest
Expand Down

0 comments on commit c1e5d41

Please sign in to comment.