try patch

This commit is contained in:
Michael Duong 2023-09-15 19:28:09 +01:00
parent 8bc5ab0a8c
commit bb2bd8651d

View file

@ -45,9 +45,11 @@ jobs:
git push origin ${new_tag}
gto show >> MODEL_REGISTRY.md
git commit -am "Update Registry"
git push
Register-Minor-Model-Dev:
# if: ${{ (github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'minor')) }}
if: ${{ (github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'minor')) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@ -61,8 +63,8 @@ jobs:
- name: Register Model
run: |
# REGISTER_MODEL_NAME=$(echo ${{ github.event.pull_request.head.ref }} | awk -F"-" '{print $1}')
REGISTER_MODEL_NAME=$(echo ${{github.ref_name}} | awk -F"-" '{print $1}')
REGISTER_MODEL_NAME=$(echo ${{ github.event.pull_request.head.ref }} | awk -F"-" '{print $1}')
# REGISTER_MODEL_NAME=$(echo ${{github.ref_name}} | awk -F"-" '{print $1}')
git config user.name "Github-Bot"
git config user.email "Github-Bot@no-reply.com"
@ -76,9 +78,11 @@ jobs:
git push origin ${new_tag}
gto show >> MODEL_REGISTRY.md
git commit -am "Update Registry"
git push
Register-Patch-Model-Dev:
if: ${{ (github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'patch')) }}
# if: ${{ (github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'patch')) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@ -107,6 +111,8 @@ jobs:
git push origin ${new_tag}
gto show >> MODEL_REGISTRY.md
git commit -am "Update Registry"
git push
Promote-Artefacts-To-Dev:
if: github.event.pull_request.merged == true