diff --git a/.github/workflows/releaseWithCoreBundle.yml b/.github/workflows/releaseWithCoreBundle.yml index 9b69364e..abe16a7b 100644 --- a/.github/workflows/releaseWithCoreBundle.yml +++ b/.github/workflows/releaseWithCoreBundle.yml @@ -1,5 +1,11 @@ name: publish source-tracking-bundle on: + workflow_run: + workflows: + - create-github-release + types: + - completed + workflow_dispatch: inputs: branch: @@ -10,7 +16,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 }} + branch: ${{ inputs.branch || 'main'}} diff --git a/.github/workflows/validate-bundle.yml b/.github/workflows/validate-bundle.yml new file mode 100644 index 00000000..b38f4852 --- /dev/null +++ b/.github/workflows/validate-bundle.yml @@ -0,0 +1,10 @@ +name: Run Tests for bundling against Change + +on: + push: + branches-ignore: [main] + +jobs: + call-validate-bundle: + uses: forcedotcom/bundle-publish-scripts/.github/workflows/validateBundleForDependents.yml@main + secrets: inherit