Skip to content

Commit a9fc17f

Browse files
committed
PPHA-369: Attempt to make build stage run on PR merge
1 parent 04190d1 commit a9fc17f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/cicd-1-pull-request.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches:
88
- "**"
99
pull_request:
10-
types: [opened, reopened, merged]
10+
types: [opened, reopened, closed]
1111

1212
jobs:
1313
metadata:
@@ -96,7 +96,7 @@ jobs:
9696
name: "Build stage"
9797
needs: [metadata, test-stage]
9898
uses: ./.github/workflows/stage-3-build.yaml
99-
if: needs.metadata.outputs.does_pull_request_exist == 'true' || (github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'merged'))
99+
if: needs.metadata.outputs.does_pull_request_exist == 'true' || (github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened' || (github.event.action == 'closed' && github.event.pull_request.merged == true)))
100100
with:
101101
build_datetime: "${{ needs.metadata.outputs.build_datetime }}"
102102
build_timestamp: "${{ needs.metadata.outputs.build_timestamp }}"

0 commit comments

Comments
 (0)