From c24bd37b5cf98a74dcd86b3381d122b49dd3d54d Mon Sep 17 00:00:00 2001 From: Frederick Pruneau Date: Thu, 5 Feb 2026 14:01:31 -0500 Subject: [PATCH] Rewrote Google Chat notification --- .gitea/workflows/node-ci.yaml | 44 +++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/node-ci.yaml b/.gitea/workflows/node-ci.yaml index 507d156..beb9edb 100644 --- a/.gitea/workflows/node-ci.yaml +++ b/.gitea/workflows/node-ci.yaml @@ -29,6 +29,15 @@ jobs: - name: Run linter run: npm run lint + - 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: Lint failed + subtitle: ${{ job.status }} + test: runs-on: ubuntu-24.04 steps: @@ -47,25 +56,6 @@ jobs: - name: Run tests run: npm test - Is_Linting_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: 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 @@ -73,4 +63,18 @@ jobs: webhookUrl: '${{ secrets.GOOGLE_CHAT_WEBHOOK }}' jobStatus: ${{ job.status }} title: Test failed - subtitle: ${{ job.status }} \ No newline at end of file + subtitle: ${{ job.status }} + + #Alert_On_Failed: + # 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: Lint failed + # subtitle: ${{ job.status }} \ No newline at end of file