diff --git a/.github/workflows/MLPipelinePullRequest.yml b/.github/workflows/MLPipelinePullRequest.yml index 52325e0..9ac5602 100644 --- a/.github/workflows/MLPipelinePullRequest.yml +++ b/.github/workflows/MLPipelinePullRequest.yml @@ -14,14 +14,23 @@ permissions: write-all jobs: 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: | - echo "Please choose one of these tags: 'major', 'major', 'patch'" - exit(1) + - uses: yogevbd/enforce-label-action@2.1.0 + with: + REQUIRED_LABELS_ANY: "major,minor,patch" + REQUIRED_LABELS_ANY_DESCRIPTION: "Select at least one label ['major','minor','patch']" + BANNED_LABELS: "banned" + + # 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: | + # echo "Please choose one of these tags: 'major', 'major', 'patch'" + # exit(1) Verify-Model: