From dd37e4b97c4bb2c2e238a2ebdb35aea3f3560fa1 Mon Sep 17 00:00:00 2001 From: aboyko Date: Tue, 3 Sep 2024 20:22:34 -0400 Subject: [PATCH] Test GChat message --- .github/workflows/test-gchat-message.yml | 67 ++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .github/workflows/test-gchat-message.yml diff --git a/.github/workflows/test-gchat-message.yml b/.github/workflows/test-gchat-message.yml new file mode 100644 index 000000000..d4e832323 --- /dev/null +++ b/.github/workflows/test-gchat-message.yml @@ -0,0 +1,67 @@ +name: Test Slack Message + +on: + workflow_dispatch: + +jobs: + slack-message: + name: Send GChat message + runs-on: ubuntu-latest + steps: + - name: Google Chat Notification + run: | + curl --location --request POST '${{ secrets.TOOLS_TEAM_GCHAT_WEBHOOK_URL }}' \ + --header 'Content-Type: application/json' \ + --data-raw '{ + "cards": [ + { + "header": { + "title": "Test Release Message", + "subtitle": "Version: #${{ inputs.version }}" + }, + "sections": [ + { + "widgets": [ + { + "keyValue": { + "topLabel": "Creator", + "content": "Alex Boyko" + }, + }, + { + "keyValue": { + "topLabel": "Title", + "content": "All the best and cool features" + } + }, + { + "buttons": [ + { + "textButton": { + "text": "Button 1", + "onClick": { + "openLink": { + "url": "https://github.com/spring-projects/sts4" + } + } + } + }, + { + "textButton": { + "text": "Button 2", + "onClick": { + "openLink": { + "url": "https://github.com/spring-projects/sts4" + } + } + } + } + + ] + } + ] + } + ] + } + ] + }'