Skip to content

Commit

Permalink
Add a step in nightly to dispatch event to rasa-plus
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchariGr committed Sep 19, 2023
1 parent c8e347b commit a887ba9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/nightly_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit a887ba9

Please sign in to comment.