Fix Swift integration tests for a returning user. (#518) #99
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }}" | |
| } | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| }' | |