Skip to content

Met Office varname (sprint_0) #173

Met Office varname (sprint_0)

Met Office varname (sprint_0) #173

Workflow file for this run

---
name: Check Label
on:
pull_request:
types:
- opened
- labeled
- unlabeled
- synchronized
jobs:
ready-to-merge:
runs-on: ubuntu-latest
steps:
- name: Fail if PR is not labelled as ready to merge
if: "!contains(github.event.pull_request.labels.*.name,'ready to merge')"
run: |
echo "This PR does not have 'ready to merge' label."
exit 1
- name: Pass if PR is labelled as ready to merge
if: |
github.ref == 'pull_request' &&
contains(github.event.pull_request.labels.*.name,'ready to merge')
run: echo "This PR is ready to merge."