Skip to content

Commit

Permalink
Add Announce Release in Chat job into release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Dec 13, 2024
1 parent 23f6a71 commit 3b65003
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,16 @@ jobs:
with:
milestone: ${{ needs.build-and-stage-release.outputs.version }}
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
announce-release-in-chat:
name: Announce Release in Chat
needs:
- build-and-stage-release
- create-github-release
runs-on: ubuntu-latest
steps:
- name: Announce Release in Chat
if: env.CHAT_WEBHOOK_URL
run: |
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 }}`"}'
env:
CHAT_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_GCHAT_WEBHOOK_URL }}

0 comments on commit 3b65003

Please sign in to comment.