Skip to content

Commit 0c42030

Browse files
committed
[CI] Replace Slack w/ GChat
Use GChat instead of Slack when announcing a release.
1 parent 62744ec commit 0c42030

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
workflow_dispatch:
1212

1313
env:
14-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
14+
GCHAT_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_GCHAT_WEBHOOK_URL }}
1515
GRADLE_ENTERPRISE_CACHE_USER: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
1616
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
1717
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
@@ -203,26 +203,12 @@ jobs:
203203
--title "Spring Pulsar $VERSION" \
204204
--generate-notes \
205205
--notes-file $RELEASE_NOTES_FILE
206-
- name: Announce Release on Slack
207-
id: spring-pulsar-announcing
208-
uses: slackapi/[email protected]
206+
- name: Announce Release in Chat
207+
uses: julb/action-post-googlechat-message@v1
208+
if: env.GCHAT_WEBHOOK_URL
209209
with:
210-
payload: |
211-
{
212-
"text": "spring-pulsar-announcing `${{ env.VERSION }}` is available now",
213-
"blocks": [
214-
{
215-
"type": "section",
216-
"text": {
217-
"type": "mrkdwn",
218-
"text": "spring-pulsar-announcing `${{ env.VERSION }}` is available now"
219-
}
220-
}
221-
]
222-
}
223-
env:
224-
SLACK_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_SLACK_WEBHOOK_URL }}
225-
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
210+
message: "spring-pulsar-announcing `${{ env.VERSION }}`"
211+
gchat_webhook_url: ${{ env.GCHAT_WEBHOOK_URL }}
226212
- name: Update next snapshot version
227213
run: |
228214
echo "Updating $REPO@$VERSION to next snapshot version."

0 commit comments

Comments
 (0)