diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4f8d7592..d8c099873 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -106,9 +106,9 @@ jobs: - name: Run Playwright tests run: npm run test:ui - # - name: Notify Discord - # if: failure() && github.ref == 'refs/heads/main' - # uses: discord-actions/message@v2 - # with: - # webhookUrl: ${{ secrets.DISCORD_WEBHOOK_URL }} - # message: 'The [most recent build](<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}>) on the `main` branch has failed.' + - name: Notify Discord + if: failure() && github.ref == 'refs/heads/main' + uses: discord-actions/message@v2 + with: + webhookUrl: ${{ secrets.DISCORD_WEBHOOK_URL }} + message: 'The [most recent build](<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}>) on the `main` branch has failed.' diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 647fbabff..e36f5b3ab 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -109,9 +109,9 @@ jobs: env: GITHUB_WORKSPACE: ${{ github.workspace }} - # - name: Notify Discord - # if: failure() && github.ref == 'refs/heads/main' - # uses: discord-actions/message@v2 - # with: - # webhookUrl: ${{ secrets.DISCORD_WEBHOOK_URL }} - # message: 'The [most recent build](<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}>) on the `main` branch has failed.' + - name: Notify Discord + if: failure() && github.ref == 'refs/heads/main' + uses: discord-actions/message@v2 + with: + webhookUrl: ${{ secrets.DISCORD_WEBHOOK_URL }} + message: 'The [most recent build](<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}>) on the `main` branch has failed.'