mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-08 11:17:25 +00:00
add enforce label action
This commit is contained in:
parent
c589ed4c3b
commit
a576b3e024
1 changed files with 15 additions and 6 deletions
21
.github/workflows/MLPipelinePullRequest.yml
vendored
21
.github/workflows/MLPipelinePullRequest.yml
vendored
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue