diff --git a/.github/workflows/nm-build-test.yml b/.github/workflows/nm-build-test.yml index 0516679b5cf7e..1acc2d31717b3 100644 --- a/.github/workflows/nm-build-test.yml +++ b/.github/workflows/nm-build-test.yml @@ -173,7 +173,7 @@ jobs: # update docker DOCKER: - needs: [BUILD] + needs: [BUILD, UPLOAD] if: ${{ inputs.wf_category != 'REMOTE' }} uses: ./.github/workflows/publish-docker.yml with: diff --git a/.github/workflows/nm-upload-assets-to-gcp.yml b/.github/workflows/nm-upload-assets-to-gcp.yml index 8d8835271de0a..6c2c43b995dce 100644 --- a/.github/workflows/nm-upload-assets-to-gcp.yml +++ b/.github/workflows/nm-upload-assets-to-gcp.yml @@ -17,6 +17,21 @@ on: type: string required: true + workflow_dispatch: + inputs: + label: + description: "requested runner label (specifies instance)" + type: string + required: true + timeout: + description: "time limit for run in minutes " + type: string + required: true + gitref: + description: 'git commit hash or branch name' + type: string + required: true + jobs: PUBLISH: @@ -70,3 +85,16 @@ jobs: - name: cp assets id: cp-assets uses: ./.github/actions/nm-cp-assets/ + + - name: trigger stratus nm-pypi update workflow to update nm-pypi index + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.CICD_GITHUB_PAT }} + script: | + const result = await github.rest.actions.createWorkflowDispatch({ + owner: 'neuralmagic', + repo: 'stratus', + workflow_id: 'nm-pypi-update.yml', + ref: 'main' + }) + console.log(result)