diff --git a/.github/workflows/releaseWithCoreBundle.yml b/.github/workflows/releaseWithCoreBundle.yml index 35eb57a6..68e34cec 100644 --- a/.github/workflows/releaseWithCoreBundle.yml +++ b/.github/workflows/releaseWithCoreBundle.yml @@ -1,5 +1,10 @@ name: publish apex-node-bundle on: + workflow_run: + workflows: + - version, tag and github release + types: + - completed workflow_dispatch: inputs: branch: @@ -10,7 +15,8 @@ on: jobs: call-release-workflow: + if: ${{ inputs.branch || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')}} uses: forcedotcom/bundle-publish-scripts/.github/workflows/releaseWithCoreBundle.yml@main secrets: inherit with: - branch: ${{ inputs.branch }} \ No newline at end of file + branch: ${{ inputs.branch || 'main'}}