test gto step - with merge to master

This commit is contained in:
Michael Duong 2023-09-11 09:02:15 +01:00
parent 4107dd7642
commit c871c0d610

View file

@ -1,22 +1,22 @@
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:
if_merged:
# if: github.event.pull_request.merged == true
Register-New-Model:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -37,8 +37,6 @@ jobs:
git config user.name "Github-Bot"
git config user.email "Github-Bot"
git fetch origin
gto register ${REGISTER_MODEL_NAME}
gto assign ${REGISTER_MODEL_NAME} --stage dev
gto show