From ff0d743e0c4cc7607bce2c8eac39c19c3b502054 Mon Sep 17 00:00:00 2001 From: Steve Riesenberg <5248162+sjohnr@users.noreply.github.com> Date: Tue, 30 Jul 2024 14:39:06 -0500 Subject: [PATCH] Add GChat release notifications Closes gh-50 --- .github/workflows/perform-release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/perform-release.yml b/.github/workflows/perform-release.yml index b46cf2b..ceb0d25 100644 --- a/.github/workflows/perform-release.yml +++ b/.github/workflows/perform-release.yml @@ -39,6 +39,8 @@ on: required: false GH_ACTIONS_REPO_TOKEN: required: true + SPRING_RELEASE_GCHAT_WEBHOOK_URL: + required: true env: GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }} @@ -112,7 +114,13 @@ jobs: env: VERSION: ${{ steps.project-version.outputs.version }} run: ./gradlew closeMilestone -PnextVersion=$VERSION -PgitHubAccessToken=$TOKEN - # TODO: Add integration with GChat for #spring-release channel. + - name: Announce Release on GChat + env: + VERSION: ${{ steps.project-version.outputs.version }} + ANNOUNCING_ID: ${{ inputs.slack-announcing-id }} + WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_GCHAT_WEBHOOK_URL }} + run: | + curl -X POST '$WEBHOOK_URL' -H 'Content-Type: application/json' -d '{ text: "$ANNOUNCING_ID `$VERSION` is available now" }' || true next-development-version: name: Next Development Version runs-on: ubuntu-latest