Skip to content

Commit

Permalink
Merge pull request #278 from UKGovernmentBEIS/staging
Browse files Browse the repository at this point in the history
staging -> main
  • Loading branch information
jdgage authored May 3, 2024
2 parents 55c95c2 + 319c54e commit 6983874
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/main-label-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: main_label_check

on:
pull_request:
types: [opened, edited, labeled, unlabeled]

jobs:
label_check:
runs-on: ubuntu-latest
steps:
- name: Fail if no "production release" label is present while targeting main
if: ${{github.event.pull_request.base.ref == 'main' && !contains(github.event.pull_request.labels.*.name, 'production release')}}
uses: actions/github-script@v3
with:
script: |
core.setFailed("Label is missing: add a 'production release' label in order to merge to main")

0 comments on commit 6983874

Please sign in to comment.