From a887ba9bf86eb31ae82492524c67fca241bd88fb Mon Sep 17 00:00:00 2001 From: sancharigr Date: Tue, 19 Sep 2023 18:33:11 +0200 Subject: [PATCH] Add a step in nightly to dispatch event to rasa-plus --- .github/workflows/nightly_release.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/nightly_release.yml b/.github/workflows/nightly_release.yml index 4521fbf34474..80da60e108e1 100644 --- a/.github/workflows/nightly_release.yml +++ b/.github/workflows/nightly_release.yml @@ -196,3 +196,16 @@ jobs: with: args: "⛔️ *Rasa nightly release* failed 😱! Please check out GitHub Actions: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" + - name: Dispatch event for rasa plus nightly run + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const result = await github.rest.repos.createDispatchEvent({ + owner: 'RasaHQ', + repo: 'rasa-plus', + event_type: 'nightly_release', + client_payload: {"version": "${IMAGE_TAG}"} + }) + console.log(result); +