Skip to content

Commit

Permalink
Add GChat release notifications
Browse files Browse the repository at this point in the history
Closes gh-50
  • Loading branch information
sjohnr committed Jul 30, 2024
1 parent 7581429 commit ff0d743
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/perform-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ff0d743

Please sign in to comment.