Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate semver PR label check into its own workflow #35

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 2 additions & 19 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
name: Continuous Integration

# This is a workflow fix

on:
push:
branches: [main]

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 }}
Expand Down Expand Up @@ -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 ]
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/semver_pr_label.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Loading