From 2755a8749e498bb759a3f580369c0a3f3678eeb5 Mon Sep 17 00:00:00 2001 From: Brandon Trautmann Date: Mon, 16 Sep 2024 10:08:49 -0400 Subject: [PATCH] separate failures into channel specific uploads --- .github/workflows/check_compat.yaml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/check_compat.yaml b/.github/workflows/check_compat.yaml index e42b4cb..de5ed3a 100644 --- a/.github/workflows/check_compat.yaml +++ b/.github/workflows/check_compat.yaml @@ -6,6 +6,9 @@ on: # # Run daily at 00:00 UTC # - cron: '0 0 * * *' workflow_dispatch: + push: + branches: + - bt/compat-job jobs: build: @@ -32,18 +35,18 @@ jobs: if: failure() uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 with: - name: "golden_failures" + name: "golden_failures_${{ matrix.channel }}" path: | **/failures/**/*.png - - name: Notify failure - if: failure() - uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 #v1.27.0 - with: - payload: | - { - "message": "Heads up! Alchemist compatibility check failed for ${{ matrix.channel }} channel.", - "job_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.MOBILE_OSS_SLACK_WEBHOOK }} + # - name: Notify failure + # if: failure() + # uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 #v1.27.0 + # with: + # payload: | + # { + # "message": "Heads up! Alchemist compatibility check failed for ${{ matrix.channel }} channel.", + # "job_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + # } + # env: + # SLACK_WEBHOOK_URL: ${{ secrets.MOBILE_OSS_SLACK_WEBHOOK }}