test merge with label

This commit is contained in:
Michael Duong 2023-09-13 22:25:09 +01:00
parent 0240c76724
commit b7749a3f24

View file

@ -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