From a5cbba0bc2d49066bba822fb4826bacca635440a Mon Sep 17 00:00:00 2001 From: Andrew Leith Date: Thu, 9 Jan 2025 18:11:20 +0000 Subject: [PATCH 1/6] fix: try adding double braces to the variable reference --- .github/workflows/cypress-staging.yaml | 2 +- .github/workflows/docker.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cypress-staging.yaml b/.github/workflows/cypress-staging.yaml index bdc7f6e71..0f3fe5700 100644 --- a/.github/workflows/cypress-staging.yaml +++ b/.github/workflows/cypress-staging.yaml @@ -38,5 +38,5 @@ jobs: - name: Notify Slack channel if this job failed if: ${{ failure() }} run: | - json='{"text": " Staging a11y tests failed: !"}' + json='{"text": " Staging a11y tests failed: !"}' curl -X POST -H 'Content-type: application/json' --data "$json" ${{ secrets.SLACK_WEBHOOK }} diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 12105076f..007b2a560 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -121,5 +121,5 @@ jobs: - name: Notify Slack channel if this job failed if: ${{ failure() }} run: | - json='{"text":" CI is failing in !"}' + json='{"text":" CI is failing in !"}' curl -X POST -H 'Content-type: application/json' --data "$json" ${{ secrets.SLACK_WEBHOOK }} From 475f2aeaf2565e2e9f0e7bde628f3478ca28e772 Mon Sep 17 00:00:00 2001 From: Andrew Leith Date: Thu, 9 Jan 2025 18:27:54 +0000 Subject: [PATCH 2/6] chore: add debug workflow to figure this out --- .github/workflows/debug.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/debug.yml diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml new file mode 100644 index 000000000..eecbbe516 --- /dev/null +++ b/.github/workflows/debug.yml @@ -0,0 +1,18 @@ +name: Debug Slack Webhook + +on: + push: + branches: + - fix/slack-webhook-part-3 # Replace with your specific branch name + +jobs: + debug-slack-webhook: + runs-on: ubuntu-latest + + steps: + - name: Debug Slack Webhook + run: | + json="{\"text\": \" CI is failing in !\"}" + echo "Sending: $json" # Debug print + env: + GITHUB_RUN_ID: ${{ github.run_id }} From 07b27f7b2d3c57df21fe41d26e8fa5b2b29e8616 Mon Sep 17 00:00:00 2001 From: Andrew Leith Date: Thu, 9 Jan 2025 18:29:40 +0000 Subject: [PATCH 3/6] chore: try again --- .github/workflows/debug.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index eecbbe516..b63bdd110 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -12,7 +12,5 @@ jobs: steps: - name: Debug Slack Webhook run: | - json="{\"text\": \" CI is failing in !\"}" + json="{\"text\": \" CI is failing in !\"}" echo "Sending: $json" # Debug print - env: - GITHUB_RUN_ID: ${{ github.run_id }} From 084612010cc1dc644ad4ea75d868812be7759b79 Mon Sep 17 00:00:00 2001 From: Andrew Leith Date: Thu, 9 Jan 2025 18:31:55 +0000 Subject: [PATCH 4/6] chore: try again again --- .github/workflows/debug.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index b63bdd110..ac6c62d6c 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -12,5 +12,6 @@ jobs: steps: - name: Debug Slack Webhook run: | - json="{\"text\": \" CI is failing in !\"}" + json="{\"text\": \" CI is failing in !\"}" echo "Sending: $json" # Debug print + From 289ab2dc99fb7e87f285a2af44732123cf0135a7 Mon Sep 17 00:00:00 2001 From: Andrew Leith Date: Thu, 9 Jan 2025 18:36:31 +0000 Subject: [PATCH 5/6] remove debug workflow --- .github/workflows/debug.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .github/workflows/debug.yml diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml deleted file mode 100644 index ac6c62d6c..000000000 --- a/.github/workflows/debug.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Debug Slack Webhook - -on: - push: - branches: - - fix/slack-webhook-part-3 # Replace with your specific branch name - -jobs: - debug-slack-webhook: - runs-on: ubuntu-latest - - steps: - - name: Debug Slack Webhook - run: | - json="{\"text\": \" CI is failing in !\"}" - echo "Sending: $json" # Debug print - From 4c81e63b6f951ed2b2a1bd7ffc6648ea7978a064 Mon Sep 17 00:00:00 2001 From: Andrew Leith Date: Thu, 9 Jan 2025 18:36:39 +0000 Subject: [PATCH 6/6] update workflows FOR THE LAST TIME --- .github/workflows/cypress-staging.yaml | 2 +- .github/workflows/docker.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cypress-staging.yaml b/.github/workflows/cypress-staging.yaml index 0f3fe5700..ad068dfcf 100644 --- a/.github/workflows/cypress-staging.yaml +++ b/.github/workflows/cypress-staging.yaml @@ -38,5 +38,5 @@ jobs: - name: Notify Slack channel if this job failed if: ${{ failure() }} run: | - json='{"text": " Staging a11y tests failed: !"}' + json='{"text": " Staging a11y tests failed: !"}' curl -X POST -H 'Content-type: application/json' --data "$json" ${{ secrets.SLACK_WEBHOOK }} diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 007b2a560..aa7c50f97 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -121,5 +121,5 @@ jobs: - name: Notify Slack channel if this job failed if: ${{ failure() }} run: | - json='{"text":" CI is failing in !"}' + json='{"text":" CI is failing in !"}' curl -X POST -H 'Content-type: application/json' --data "$json" ${{ secrets.SLACK_WEBHOOK }}