test gto step - with merge to master

This commit is contained in:
Michael Duong 2023-09-11 09:19:31 +01:00
parent c871c0d610
commit d83e973787

View file

@ -16,7 +16,7 @@ permissions: write-all
jobs:
Register-New-Model:
if: github.event.pull_request.merged == true
# if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -32,8 +32,12 @@ jobs:
pip install -r modules/ml-pipeline/src/pipeline/src/requirements/version_control/requirements.txt
- name: Register Model
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
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"