From f4e69cd79fd651f0b39bf27176752e7c920087d2 Mon Sep 17 00:00:00 2001 From: Frederick Pruneau Date: Thu, 5 Feb 2026 13:55:11 -0500 Subject: [PATCH] Rewrote Google Chat notification --- .gitea/workflows/node-ci.yaml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/node-ci.yaml b/.gitea/workflows/node-ci.yaml index f60b6cd..507d156 100644 --- a/.gitea/workflows/node-ci.yaml +++ b/.gitea/workflows/node-ci.yaml @@ -47,8 +47,8 @@ jobs: - name: Run tests run: npm test - alert_on_failure: - needs: test + Is_Linting_Succeeded: + needs: lint runs-on: ubuntu-24.04 #if: ${{ needs.test.result == 'failure' }} ## steps: @@ -58,7 +58,19 @@ jobs: with: webhookUrl: '${{ secrets.GOOGLE_CHAT_WEBHOOK }}' jobStatus: ${{ job.status }} - title: Google Chat GitHub Action + title: Lint failed subtitle: ${{ job.status }} - createDefaultSection: false - collapsibleDefaultSection: false \ No newline at end of file + + 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 }} \ No newline at end of file