Commit e8e63b218c for woocommerce
commit e8e63b218ceaba59d904a3aca7b40ce081e05438
Author: Alba Rincón <albarin@users.noreply.github.com>
Date: Thu May 29 09:18:49 2025 +0200
Add a workflow to send a slack notification when a release is published (#58290)
* Add a flow to send a slack notification when a release is published
* Rename step
* Rename workflow
* Update flow title
diff --git a/.github/workflows/release-new-release-published.yml b/.github/workflows/release-new-release-published.yml
new file mode 100644
index 0000000000..3c45c26eaf
--- /dev/null
+++ b/.github/workflows/release-new-release-published.yml
@@ -0,0 +1,17 @@
+name: 'Release: Notify in Slack when a new (pre)release is published'
+on:
+ release:
+ types: [published]
+
+jobs:
+ notify-release-published:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: 'Notify to Slack when a new release is published'
+ uses: archive/github-actions-slack@v2.10.0
+ with:
+ slack-bot-user-oauth-access-token: ${{ secrets.CODE_FREEZE_BOT_TOKEN }}
+ slack-channel: ${{ secrets.WOO_RELEASE_SLACK_CHANNEL }},${{ secrets.WOO_ANNOUNCEMENTS_SLACK_CHANNEL }}
+ slack-optional-unfurl_links: false
+ slack-text: ':woo-bounce: *<${{ github.event.release.html_url }}|WooCommerce ${{ github.event.release.name }}>* has been released! :rocket:'