Added event trigger for pre-releases (#33200)
* Added event trigger for pre-releases When a woocommece pre-release occurs, this workflow will trigger a testing event in another repo defined using project secrets. * Set to only fire on prereleases * Updated run condition * Fixed run condition
This commit is contained in:
parent
244387f5d8
commit
44d862e10d
|
@ -61,3 +61,18 @@ jobs:
|
||||||
token: ${{ secrets.E2E_WORKFLOW_GH_TOKEN }}
|
token: ${{ secrets.E2E_WORKFLOW_GH_TOKEN }}
|
||||||
ref: refs/heads/trunk
|
ref: refs/heads/trunk
|
||||||
inputs: '{ "release_id": "${{ github.event.release.id }}" }'
|
inputs: '{ "release_id": "${{ github.event.release.id }}" }'
|
||||||
|
send-release-notification:
|
||||||
|
if: github.event.release.prerelease == true && github.event.release.draft == false && github.event.release.tag_name != 'nightly'
|
||||||
|
name: Send Release Notification
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- name: Invoke Pre-Release Event
|
||||||
|
uses: aurelien-baudet/workflow-dispatch@v2
|
||||||
|
with:
|
||||||
|
workflow: ${{ secrets.CD_RELEASE_NOTIFICATION_WORKFLOW }}
|
||||||
|
repo: ${{ secrets.CD_NOTIFICATION_REPO }}
|
||||||
|
token: ${{ secrets.CD_GH_TOKEN }}
|
||||||
|
ref: refs/heads/trunk
|
||||||
|
inputs: '{ "tag_name": "${{ github.event.release.tag_name }}" }'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue