mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-08 11:17:25 +00:00
test merge with label
This commit is contained in:
parent
0240c76724
commit
b7749a3f24
1 changed files with 35 additions and 9 deletions
44
.github/workflows/MLPipelinePostMerge.yml
vendored
44
.github/workflows/MLPipelinePostMerge.yml
vendored
|
|
@ -1,20 +1,46 @@
|
|||
name: Register the model for the given pipeline branch
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "model-**"
|
||||
|
||||
# on:
|
||||
# pull_request:
|
||||
# types:
|
||||
# - closed
|
||||
# push:
|
||||
# branches:
|
||||
# - "master"
|
||||
# - "model-**"
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
permissions: write-all
|
||||
|
||||
jobs:
|
||||
Use-Major-Label-on-Merge:
|
||||
if: ${{ (github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'major')) }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Test echoo
|
||||
run: |
|
||||
echo "Hello Major"
|
||||
|
||||
Use-Minor-Label-on-Merge:
|
||||
if: ${{ (github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'minor')) }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Test echoo
|
||||
run: |
|
||||
echo "Hello Minor"
|
||||
|
||||
Use-Patch-Label-on-Merge:
|
||||
if: ${{ (github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'patch')) }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Test echoo
|
||||
run: |
|
||||
echo "Hello Patch"
|
||||
|
||||
# Promote-Model-To-Dev:
|
||||
# if: github.event.pull_request.merged == true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue