Check For Release Label #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For this check to pass you must have a release label on your PR. | |
# valid labels are: release/patch, release/minor, release/major, release/skip | |
name: Check For Release Label | |
on: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
check_for_release_label: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get release label | |
uses: actions-ecosystem/[email protected] | |
id: release-label | |
- run: echo "Release level is ${{ steps.release-label.outputs.level }}" | |
- name: Fail if label does not exist, or skip if release/skip label exists | |
if: ${{ ( ! contains(github.event.pull_request.labels.*.name, 'release/skip') ) && ( steps.release-label.outputs.level == null ) }} | |
run: echo "Please label your PR with a release label" && exit 1 |