Skip to content

Commit 2217bfd

Browse files
committed
Revert "start without chat notifications"
This reverts commit d432bda.
1 parent d432bda commit 2217bfd

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

.github/workflows/weekly_branch_tests.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ jobs:
101101
name: ${{ matrix.config.name }}_${{ matrix.branch }}_${{ matrix.java.ver }}_results
102102
path: check
103103

104-
# - name: Notify on failure
105-
# if: failure() && secrets.GOOGLE_CHAT_WEBHOOK_URL != ''
106-
# run: |
107-
# curl -X POST \
108-
# -H 'Content-Type: application/json' \
109-
# -d '{
110-
# "text": "🚨 *Weekly Tests Failed*\n\n• **Branch**: ${{ matrix.branch }}\n• **OS**: ${{ matrix.config.name }}\n• **Java**: ${{ matrix.java.ver }}\n• **Repository**: ${{ github.repository }}\n• **Run**: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Logs>"
111-
# }' \
112-
# "${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}"
104+
- name: Notify on failure
105+
if: failure() && secrets.GOOGLE_CHAT_WEBHOOK_URL != ''
106+
run: |
107+
curl -X POST \
108+
-H 'Content-Type: application/json' \
109+
-d '{
110+
"text": "🚨 *Weekly Tests Failed*\n\n• **Branch**: ${{ matrix.branch }}\n• **OS**: ${{ matrix.config.name }}\n• **Java**: ${{ matrix.java.ver }}\n• **Repository**: ${{ github.repository }}\n• **Run**: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Logs>"
111+
}' \
112+
"${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}"

.github/workflows/weekly_download_test.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ jobs:
4141
viash --help > /dev/null
4242
echo "✅ viash help command works"
4343
44-
# - name: Notify download test failure
45-
# if: failure() && secrets.GOOGLE_CHAT_WEBHOOK_URL != ''
46-
# run: |
47-
# curl -X POST \
48-
# -H 'Content-Type: application/json' \
49-
# -d '{
50-
# "text": "🚨 *Viash Download Test Failed*\n\n• **OS**: ${{ matrix.os }}\n• **Issue**: Failed to download/install viash from https://dl.viash.io\n• **Repository**: ${{ github.repository }}\n• **Run**: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Logs>"
51-
# }' \
52-
# "${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}"
44+
- name: Notify download test failure
45+
if: failure() && secrets.GOOGLE_CHAT_WEBHOOK_URL != ''
46+
run: |
47+
curl -X POST \
48+
-H 'Content-Type: application/json' \
49+
-d '{
50+
"text": "🚨 *Viash Download Test Failed*\n\n• **OS**: ${{ matrix.os }}\n• **Issue**: Failed to download/install viash from https://dl.viash.io\n• **Repository**: ${{ github.repository }}\n• **Run**: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Logs>"
51+
}' \
52+
"${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}"

0 commit comments

Comments
 (0)