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:
Jamel Noel Reid 2022-06-17 15:03:32 -05:00 committed by GitHub
parent 244387f5d8
commit 44d862e10d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -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 }}" }'