diff --git a/.github/workflows/MLPipelinePostMerge.yml b/.github/workflows/MLPipelinePostMerge.yml index a7acfdd..77e7201 100644 --- a/.github/workflows/MLPipelinePostMerge.yml +++ b/.github/workflows/MLPipelinePostMerge.yml @@ -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