From c871c0d610371e28d6b2f75283a146643e77d454 Mon Sep 17 00:00:00 2001 From: Michael Duong Date: Mon, 11 Sep 2023 09:02:15 +0100 Subject: [PATCH] test gto step - with merge to master --- .github/workflows/MLPipelinePostMerge.yml | 24 +++++++++++------------ 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/MLPipelinePostMerge.yml b/.github/workflows/MLPipelinePostMerge.yml index 28d651d..660acd0 100644 --- a/.github/workflows/MLPipelinePostMerge.yml +++ b/.github/workflows/MLPipelinePostMerge.yml @@ -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