Skip to content

Commit

Permalink
Merge pull request #252 from RasaHQ/port_ATO-2090
Browse files Browse the repository at this point in the history
Update slack release notification step
  • Loading branch information
sanchariGr authored Feb 9, 2024
2 parents ecdd8be + a5e58e1 commit e0f4e15
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/continous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1185,18 +1185,25 @@ jobs:
sentry-cli releases set-commits --auto "rasa-$GITHUB_TAG"
sentry-cli releases finalize "rasa-$GITHUB_TAG"
- name: Notify Slack & Publish Release Notes 🗞
- name: Publish Release Notes 🗞
env:
GH_RELEASE_NOTES_TOKEN: ${{ secrets.GH_RELEASE_NOTES_TOKEN }}
SLACK_WEBHOOK_TOKEN: ${{ secrets.SLACK_WEBHOOK_TOKEN }}
GITHUB_TAG: ${{ github.ref }}
GITHUB_REPO_SLUG: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GITHUB_TAG=${GITHUB_TAG/refs\/tags\//}
pip install -U github3.py pep440-version-utils
python3 scripts/publish_gh_release_notes.py
./scripts/ping_slack_about_package_release.sh
- name: Notify Slack of successful release 💬
# notification will be sent to the #product channel on slack, webhook url is added as repository secret
if: success()
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_RELEASE_ASSISTANT_PRODUCT_WEBHOOK }}
uses: Ilshidur/action-slack@689ad44a9c9092315abd286d0e3a9a74d31ab78a
with:
args: "💥 New *Rasa Private* version `${{ github.ref_name }}` has been released!"

send_slack_notification_for_release_on_failure:
name: Notify Slack & Publish Release Notes
Expand All @@ -1211,7 +1218,7 @@ jobs:
# send notification if 'deploy' is skipped (previous needed job failed) or failed
if: needs.deploy.result != 'success'
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_RELEASE_ASSISTANT_ATOM_ALERTS_WEBHOOK }}
uses: Ilshidur/action-slack@689ad44a9c9092315abd286d0e3a9a74d31ab78a
with:
args: "⛔️ *Rasa Open Source* version `${{ github.ref_name }}` could not be released 😱! Please check out GitHub Actions: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
10 changes: 0 additions & 10 deletions scripts/ping_slack_about_package_release.sh

This file was deleted.

0 comments on commit e0f4e15

Please sign in to comment.