Skip to content

Fix Swift integration tests for a returning user. (#518) #99

Fix Swift integration tests for a returning user. (#518)

Fix Swift integration tests for a returning user. (#518) #99

name: GSI Push Main Notification
on:
push:
branches:
- main
jobs:
notify-push-main:
runs-on: ubuntu-latest
env:
COMMIT: ${{ github.event.head_commit.message }}
steps:
- name: Main Branch Push
run: |
echo "Workflow initiated by event with name: ${{ github.event_name }}"
echo "Pushing commit to main: ${{ github.event.head_commit.id }}"
echo "Pushed by: ${{ github.event.pusher.name }}"
- name: Push Notification to Google Chat
run: |
curl --location --request POST '${{ secrets.WEBHOOK_URL }}' \
--header 'Content-Type: application/json' \
--data-raw '{
"cards": [
{
"header": {
"title": "Push to main branch",
"subtitle": "'"$COMMIT"'"
},
"sections": [
{
"widgets": [
{
"keyValue": {
"topLabel": "Repo",
"content": "${{ github.event.repository.full_name }}"
}
},
{
"keyValue": {
"topLabel": "Committed by",
"content": "${{ github.event.head_commit.author.username }}"
}
},
{
"buttons": [
{
"textButton": {
"text": "Ref comparison",
"onClick": {
"openLink": {
"url": "${{ github.event.compare }}"
}
}
}
}
]
}
]
}
]
}
]
}'