add on label

This commit is contained in:
Michael Duong 2023-09-13 23:01:14 +01:00
parent 192fcfdfc8
commit bbd5cc757e

View file

@ -6,18 +6,22 @@ on:
# - "model-**"
pull_request:
branches: [ "master" ]
label:
types: ["created", "edited"]
permissions: write-all
jobs:
Enforce-label:
No-Label:
if: ${{ github.event.label.name != 'major' }} || ${{ github.event.label.name != 'minor' }} || ${{ github.event.label.name != 'patch' }}
runs-on: ubuntu-latest
steps:
- name: No label associated with PR
run: exit(1)
run: |
echo "Please choose one of these tags: 'major', 'major', 'patch'"
exit(1)
# Verify-Model: