Skip to content

Commit 3b65003

Browse files
committed
Add Announce Release in Chat job into release.yml
1 parent 23f6a71 commit 3b65003

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/release.yml

+13
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,16 @@ jobs:
8181
with:
8282
milestone: ${{ needs.build-and-stage-release.outputs.version }}
8383
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
84+
announce-release-in-chat:
85+
name: Announce Release in Chat
86+
needs:
87+
- build-and-stage-release
88+
- create-github-release
89+
runs-on: ubuntu-latest
90+
steps:
91+
- name: Announce Release in Chat
92+
if: env.CHAT_WEBHOOK_URL
93+
run: |
94+
curl -X POST '${{ env.CHAT_WEBHOOK_URL }}' -H 'Content-Type: application/json' -d '{ text: "${{ github.event.repository.name }}-announcing `${{ needs.build-and-stage-release.outputs.version }}`"}'
95+
env:
96+
CHAT_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_GCHAT_WEBHOOK_URL }}

0 commit comments

Comments
 (0)