Skip to content

Commit 0dc9e9e

Browse files
authored
Use spring-release-actions/announce-on-gchat
Uses common action for GChat release announcements * Respond to Feedback This commit restores the original conditional, given that secrets are not accessible in conditionals. It also relies on the announce-to-gchat project name defaut --------- Signed-off-by: Josh Cummings <3627351+jzheaux@users.noreply.github.com>
1 parent 222f500 commit 0dc9e9e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/spring-finalize-release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ jobs:
122122

123123
- name: Announce Release in Chat
124124
if: env.CHAT_WEBHOOK_URL
125-
run: |
126-
curl -X POST '${{ env.CHAT_WEBHOOK_URL }}' -H 'Content-Type: application/json' -d '{ text: "${{ github.event.repository.name }}-announcing `${{ inputs.milestone }}`"}'
125+
uses: spring-io/spring-release-actions/announce-on-gchat@0.0.1
126+
with:
127+
gchat-webhook-url: ${{ env.CHAT_WEBHOOK_URL }}
128+
version: ${{ inputs.milestone }}
127129
env:
128130
CHAT_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_CHAT_WEBHOOK_URL }}
129131

@@ -137,4 +139,4 @@ jobs:
137139
# payload: |
138140
# {
139141
# "text": "${{ github.event.repository.name }}-announcing `${{ inputs.milestone }}`"
140-
# }
142+
# }

0 commit comments

Comments
 (0)