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: