From c1e5d41ef083894dd5ef835ecd1c08d4e4889cf5 Mon Sep 17 00:00:00 2001 From: James Couball Date: Fri, 29 Dec 2023 17:28:26 -0800 Subject: [PATCH] Make a Github action workflow to enforce a semver PR label is present --- .github/workflows/main.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 165e761..ec4fc6f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: @@ -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