Skip to content

Commit 66d35cf

Browse files
Update test-report.yml
1 parent 85657c6 commit 66d35cf

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/test-report.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,24 @@ jobs:
4242
4343
report-auto-main:
4444
needs: discover-auto
45-
if: ${{ needs.discover-auto.outputs.branch_name == 'main' }}
45+
if: ${{ github.event_name == 'workflow_run' &&
46+
needs.discover-auto.result == 'success' &&
47+
needs.discover-auto.outputs.branch_name == 'main' }}
4648
uses: Stillpoint-Software/shared-workflows/.github/workflows/test-report.yml@main
4749
with:
4850
test_run_id: ${{ needs.discover-auto.outputs.run_id }}
49-
branch: main # ← NEW: tell shared workflow which branch we’re on
51+
branch: main
5052
secrets: inherit
5153

5254
report-auto-develop:
5355
needs: discover-auto
54-
if: ${{ needs.discover-auto.outputs.branch_name == 'develop' }}
56+
if: ${{ github.event_name == 'workflow_run' &&
57+
needs.discover-auto.result == 'success' &&
58+
needs.discover-auto.outputs.branch_name == 'develop' }}
5559
uses: Stillpoint-Software/shared-workflows/.github/workflows/test-report.yml@develop
5660
with:
5761
test_run_id: ${{ needs.discover-auto.outputs.run_id }}
58-
branch: develop # ← NEW
62+
branch: develop
5963
secrets: inherit
6064

6165
report-manual-main:

0 commit comments

Comments
 (0)