Rewrote Google Chat notification
This commit is contained in:
parent
c37966b930
commit
f4e69cd79f
|
|
@ -47,8 +47,8 @@ jobs:
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: npm test
|
run: npm test
|
||||||
|
|
||||||
alert_on_failure:
|
Is_Linting_Succeeded:
|
||||||
needs: test
|
needs: lint
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
#if: ${{ needs.test.result == 'failure' }} ##
|
#if: ${{ needs.test.result == 'failure' }} ##
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -58,7 +58,19 @@ jobs:
|
||||||
with:
|
with:
|
||||||
webhookUrl: '${{ secrets.GOOGLE_CHAT_WEBHOOK }}'
|
webhookUrl: '${{ secrets.GOOGLE_CHAT_WEBHOOK }}'
|
||||||
jobStatus: ${{ job.status }}
|
jobStatus: ${{ job.status }}
|
||||||
title: Google Chat GitHub Action
|
title: Lint failed
|
||||||
|
subtitle: ${{ job.status }}
|
||||||
|
|
||||||
|
Is_Test_Succeeded:
|
||||||
|
needs: lint
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
#if: ${{ needs.test.result == 'failure' }} ##
|
||||||
|
steps:
|
||||||
|
- name: Notify Google Chat
|
||||||
|
if: ${{ always() }} # Use always to ensure that the notification is also send on failure of former steps
|
||||||
|
uses: SimonScholz/google-chat-action@3b3519e5102dba8aa5046fd711c4b553586409bb # v1.1.0
|
||||||
|
with:
|
||||||
|
webhookUrl: '${{ secrets.GOOGLE_CHAT_WEBHOOK }}'
|
||||||
|
jobStatus: ${{ job.status }}
|
||||||
|
title: Test failed
|
||||||
subtitle: ${{ job.status }}
|
subtitle: ${{ job.status }}
|
||||||
createDefaultSection: false
|
|
||||||
collapsibleDefaultSection: false
|
|
||||||
Loading…
Reference in New Issue
Block a user