|
10 | 10 | KMD_NOUSB: True |
11 | 11 | BUILD_TYPE: integration |
12 | 12 | ALGOTEST: 1 |
| 13 | + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |
13 | 14 |
|
14 | 15 | concurrency: |
15 | 16 | group: pr-${{ github.event.pull_request.number || github.ref }} |
|
57 | 58 | path: /tmp/workspace-${{ matrix.platform }}.tar.gz |
58 | 59 | retention-days: 1 |
59 | 60 | - name: Notify Slack on failure |
60 | | - if: failure() |
| 61 | + if: failure() && env.SLACK_WEBHOOK != '' |
61 | 62 | uses: slackapi/slack-github-action@v2.1.0 |
62 | 63 | with: |
63 | 64 | webhook: ${{ secrets.SLACK_WEBHOOK }} |
@@ -122,7 +123,7 @@ jobs: |
122 | 123 | -race -timeout 1h -coverprofile=coverage.txt -covermode=atomic -p 1 \ |
123 | 124 | $PACKAGE_NAMES |
124 | 125 | - name: Notify Slack on failure |
125 | | - if: failure() |
| 126 | + if: failure() && env.SLACK_WEBHOOK != '' |
126 | 127 | uses: slackapi/slack-github-action@v2.1.0 |
127 | 128 | with: |
128 | 129 | webhook: ${{ secrets.SLACK_WEBHOOK }} |
@@ -200,7 +201,7 @@ jobs: |
200 | 201 | TEST_RESULTS=~/test_results/${{ matrix.platform }}_integration/${PARTITION_ID} \ |
201 | 202 | test/scripts/run_integration_tests.sh |
202 | 203 | - name: Notify Slack on failure |
203 | | - if: failure() |
| 204 | + if: failure() && env.SLACK_WEBHOOK != '' |
204 | 205 | uses: slackapi/slack-github-action@v2.1.0 |
205 | 206 | with: |
206 | 207 | webhook: ${{ secrets.SLACK_WEBHOOK }} |
@@ -267,7 +268,7 @@ jobs: |
267 | 268 | TEST_RESULTS=~/test_results/${{ matrix.platform }}_e2e_expect/${PARTITION_ID} \ |
268 | 269 | test/scripts/run_integration_tests.sh |
269 | 270 | - name: Notify Slack on failure |
270 | | - if: failure() |
| 271 | + if: failure() && env.SLACK_WEBHOOK != '' |
271 | 272 | uses: slackapi/slack-github-action@v2.1.0 |
272 | 273 | with: |
273 | 274 | webhook: ${{ secrets.SLACK_WEBHOOK }} |
@@ -331,7 +332,7 @@ jobs: |
331 | 332 | TEST_RESULTS=~/test_results/${{ matrix.platform }}_e2e_subs \ |
332 | 333 | test/scripts/run_integration_tests.sh |
333 | 334 | - name: Notify Slack on failure |
334 | | - if: failure() |
| 335 | + if: failure() && env.SLACK_WEBHOOK != '' |
335 | 336 | uses: slackapi/slack-github-action@v2.1.0 |
336 | 337 | with: |
337 | 338 | webhook: ${{ secrets.SLACK_WEBHOOK }} |
@@ -382,7 +383,7 @@ jobs: |
382 | 383 | TestGoalWithExpect \ |
383 | 384 | TestTealdbgWithExpect |
384 | 385 | - name: Notify Slack on failure |
385 | | - if: failure() |
| 386 | + if: failure() && env.SLACK_WEBHOOK != '' |
386 | 387 | uses: slackapi/slack-github-action@v2.1.0 |
387 | 388 | with: |
388 | 389 | webhook: ${{ secrets.SLACK_WEBHOOK }} |
|
0 commit comments