From 95093e2cc7aba005c1510680a3fbe0d0d25b7385 Mon Sep 17 00:00:00 2001 From: Manodnya Bhoite Date: Wed, 20 Aug 2025 08:24:41 -0700 Subject: [PATCH] initial notif --- .github/workflows/release-notification.yaml | 40 +++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/release-notification.yaml diff --git a/.github/workflows/release-notification.yaml b/.github/workflows/release-notification.yaml new file mode 100644 index 00000000000..3ba48bc18ec --- /dev/null +++ b/.github/workflows/release-notification.yaml @@ -0,0 +1,40 @@ +name: Release Notification + +on: + release: + types: [published] # Trigger on new releases being published + +jobs: + slack_notification: + runs-on: ubuntu-latest + steps: + - name: Print payload + run: | + echo '{ + "version": "${{ github.event.release.tag_name }}", + "releaseLink": "${{ github.event.release.html_url }}", + "changelog": ${{ toJSON(github.event.release.body) }} + }' + +# - name: Send Release Details to Slack +# uses: slackapi/slack-github-action@v1.23.0 # Or the latest version of this action +# with: +# payload: | +# { +# "version": "${{ github.event.release.tag_name }}", +# +# "release_url": "${{ github.event.release.html_url }}", +# "releaseLink": ${{ toJSON(github.event.release.body) }} +# } +# { +# "release_name": "${{ github.event.release.name }}", +# "tag_name": "${{ github.event.release.tag_name }}", +# "release_version": "${{ github.event.release.tag_name }}", +# "release_url": "${{ github.event.release.html_url }}", +# "author_name": "${{ github.event.release.author.login }}", +# "repository_name": "${{ github.event.repository.name }}", +# "repository_url": "${{ github.event.repository.html_url }}", +# "release_description": ${{ toJSON(github.event.release.body) }} +# } +# env: +# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # Use the secret for the webhook URL