File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments