mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-30 13:10:43 +00:00
add on label
This commit is contained in:
parent
192fcfdfc8
commit
bbd5cc757e
1 changed files with 6 additions and 2 deletions
8
.github/workflows/MLPipelinePullRequest.yml
vendored
8
.github/workflows/MLPipelinePullRequest.yml
vendored
|
|
@ -6,18 +6,22 @@ on:
|
||||||
# - "model-**"
|
# - "model-**"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "master" ]
|
branches: [ "master" ]
|
||||||
|
label:
|
||||||
|
types: ["created", "edited"]
|
||||||
|
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
Enforce-label:
|
No-Label:
|
||||||
if: ${{ github.event.label.name != 'major' }} || ${{ github.event.label.name != 'minor' }} || ${{ github.event.label.name != 'patch' }}
|
if: ${{ github.event.label.name != 'major' }} || ${{ github.event.label.name != 'minor' }} || ${{ github.event.label.name != 'patch' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: No label associated with PR
|
- name: No label associated with PR
|
||||||
run: exit(1)
|
run: |
|
||||||
|
echo "Please choose one of these tags: 'major', 'major', 'patch'"
|
||||||
|
exit(1)
|
||||||
|
|
||||||
# Verify-Model:
|
# Verify-Model:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue