Skip to content

Commit c43e288

Browse files
committed
Don't report results after every test run from a main build or it will crowd the channel
Signed-off-by: Jade Carino <carino_jade@yahoo.co.uk>
1 parent 44c8e8b commit c43e288

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/test.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,17 @@ jobs:
154154
# Combine test reports and report to Slack channel
155155
- name: Combine test reports
156156
# Skip this step for forks
157-
if: ${{ github.repository_owner == 'galasa-dev' }}
157+
# Only report results if this workflow was called from
158+
# a regression run as Main builds run multiple times a day.
159+
if: ${{ github.repository_owner == 'galasa-dev' && github.event_name 'workflow_dispatch' }}
158160
run: |
159161
jq -s '{ tests: map(.tests[]) }' ${{ github.workspace }}/.galasa/temp/test-1.json ${{ github.workspace }}/.galasa/temp/test-2.json ${{ github.workspace }}/.galasa/temp/test-3.json > ${{ github.workspace }}/.galasa/temp/tests.json
160162
161163
- name: Report results into Slack channel
162-
# Skip this step for forks
163-
if: ${{ github.repository_owner == 'galasa-dev' }}
164+
# Skip this step for forks.
165+
# Only report results if this workflow was called from
166+
# a regression run as Main builds run multiple times a day.
167+
if: ${{ github.repository_owner == 'galasa-dev' && github.event_name 'workflow_dispatch' }}
164168
env:
165169
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
166170
run: |

0 commit comments

Comments
 (0)