From bbd5cc757ef371e2e3e9055ffa89897871ac06f2 Mon Sep 17 00:00:00 2001 From: Michael Duong Date: Wed, 13 Sep 2023 23:01:14 +0100 Subject: [PATCH] add on label --- .github/workflows/MLPipelinePullRequest.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/MLPipelinePullRequest.yml b/.github/workflows/MLPipelinePullRequest.yml index 141d3df..a5b4d5a 100644 --- a/.github/workflows/MLPipelinePullRequest.yml +++ b/.github/workflows/MLPipelinePullRequest.yml @@ -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: