Skip to content

Commit ff0d743

Browse files
committed
Add GChat release notifications
Closes gh-50
1 parent 7581429 commit ff0d743

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/perform-release.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ on:
3939
required: false
4040
GH_ACTIONS_REPO_TOKEN:
4141
required: true
42+
SPRING_RELEASE_GCHAT_WEBHOOK_URL:
43+
required: true
4244

4345
env:
4446
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
@@ -112,7 +114,13 @@ jobs:
112114
env:
113115
VERSION: ${{ steps.project-version.outputs.version }}
114116
run: ./gradlew closeMilestone -PnextVersion=$VERSION -PgitHubAccessToken=$TOKEN
115-
# TODO: Add integration with GChat for #spring-release channel.
117+
- name: Announce Release on GChat
118+
env:
119+
VERSION: ${{ steps.project-version.outputs.version }}
120+
ANNOUNCING_ID: ${{ inputs.slack-announcing-id }}
121+
WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_GCHAT_WEBHOOK_URL }}
122+
run: |
123+
curl -X POST '$WEBHOOK_URL' -H 'Content-Type: application/json' -d '{ text: "$ANNOUNCING_ID `$VERSION` is available now" }' || true
116124
next-development-version:
117125
name: Next Development Version
118126
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)