diff --git a/.gitea/workflows/node-ci.yaml b/.gitea/workflows/node-ci.yaml index beb9edb..24f92aa 100644 --- a/.gitea/workflows/node-ci.yaml +++ b/.gitea/workflows/node-ci.yaml @@ -30,13 +30,14 @@ jobs: 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 + if: ${{ failure() }} # 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 }} + additionalSections: '[{"header": "Additional Section", "collapsible": true, "widgets": [{"decoratedText": {"startIcon": {"knownIcon": "STAR"},"text": "${{ github.event.pull_request.html_url }}"}}] }]' test: runs-on: ubuntu-24.04 @@ -57,24 +58,10 @@ jobs: run: npm test - name: Notify Google Chat - if: ${{ always() }} # Use always to ensure that the notification is also send on failure of former steps + if: ${{ failure() }} # 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 }} - - #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 + subtitle: ${{ job.status }} \ No newline at end of file