Skip to content

Commit ff8ccb9

Browse files
[DDS-1852] Better handling of reports for nested reusable workflows (#41)
1 parent b6769ae commit ff8ccb9

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

.github/workflows/notify_slack.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ on:
2323
workflow_name:
2424
type: string
2525
required: true
26+
workflow_id:
27+
type: string
28+
required: false
29+
default: ""
30+
workflow_reusable_name:
31+
type: string
32+
required: false
33+
default: ""
2634
project:
2735
description: Lagoon project name
2836
type: string
@@ -38,7 +46,10 @@ jobs:
3846
runs-on: ubuntu-latest
3947
if: always()
4048
steps:
41-
- uses: technote-space/workflow-conclusion-action@v3
49+
- uses: dpc-sdp/workflow-conclusion-action@main
50+
with:
51+
JOB_ID: ${{ inputs.workflow_id }}
52+
REUSABLE_WORKFLOW_NAME: ${{ inputs.workflow_reusable_name }}
4253
- uses: actions/download-artifact@v3
4354
with:
4455
name: ${{ inputs.artifact_name }}

.github/workflows/run_e2e_be.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
type: string
99
required: false
1010
default: "BE E2E"
11+
id:
12+
description: Test suite ID
13+
type: string
14+
required: false
15+
default: ""
1116
tags:
1217
description: Cucumber test tags
1318
type: string
@@ -185,6 +190,8 @@ jobs:
185190
secrets: inherit
186191
with:
187192
workflow_name: ${{ inputs.name }}
193+
workflow_id: ${{ inputs.id }}
194+
workflow_reusable_name: "run_e2e_be"
188195
test_type: ${{ inputs.test_type }}
189196
test_subtype: ${{ inputs.test_subtype }}
190197
artifact_name: "${{ inputs.name }}-report-url"

.github/workflows/run_e2e_fe.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
type: string
99
required: false
1010
default: "FE E2E"
11+
id:
12+
description: Test suite ID
13+
type: string
14+
required: false
15+
default: ""
1116
tags:
1217
description: Cucumber test tags
1318
type: string
@@ -177,6 +182,8 @@ jobs:
177182
secrets: inherit
178183
with:
179184
workflow_name: ${{ inputs.name }}
185+
workflow_id: ${{ inputs.id }}
186+
workflow_reusable_name: "run_e2e_fe"
180187
test_type: ${{ inputs.test_type }}
181188
test_subtype: ${{ inputs.test_subtype }}
182189
artifact_name: "${{ inputs.name }}-report-url"

.github/workflows/set_status.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Determine workflow state if not explicitly provided
30-
uses: technote-space/workflow-conclusion-action@v3
30+
uses: dpc-sdp/workflow-conclusion-action@main
3131
if: ${{ inputs.state == '' }}
3232
- name: Set explicitly provided workflow state
3333
if: ${{ inputs.state != '' }}

0 commit comments

Comments
 (0)