diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index ef527e0..b217bfd 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -1,5 +1,7 @@ name: Continuous Integration +# This is a workflow fix + on: push: branches: [main] @@ -7,13 +9,6 @@ on: pull_request: branches: [main] - # The default triggers for pull requests are opened, synchronize, and reopened. - # Add labeled and unlabeled to the list of triggers so that the - # check_for_semver_pr_label job is run when a label is added or removed from a - # pull request. - - types: [opened, synchronize, reopened, labeled, unlabeled] - jobs: build: name: Ruby ${{ matrix.ruby }} on ${{ matrix.operating-system }} @@ -50,18 +45,6 @@ jobs: - name: Run rake run: bundle exec rake - check_for_semver_pr_label: - name: Check that a semver label is present on the PR - 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-change,minor-change,patch-change,internal-change - repo_token: ${{ secrets.GITHUB_TOKEN }} - coverage: name: Report test coverage to CodeClimate needs: [ build ] diff --git a/.github/workflows/semver_pr_label.yml b/.github/workflows/semver_pr_label.yml new file mode 100644 index 0000000..bfc20da --- /dev/null +++ b/.github/workflows/semver_pr_label.yml @@ -0,0 +1,25 @@ +name: Semver PR Label + +on: + pull_request: + branches: [main] + + # The default triggers for pull requests are opened, synchronize, and reopened. + # Add labeled and unlabeled to the list of triggers so that the + # semver_pr_label job is run when a label is added or removed from a + # pull request. + + types: [labeled, unlabeled] + +jobs: + semver_pr_label: + name: 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-change,minor-change,patch-change,internal-change + repo_token: ${{ secrets.GITHUB_TOKEN }}