Skip to content

Commit aadfd8b

Browse files
committed
better handling for pushes
1 parent d4de83b commit aadfd8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,12 +861,12 @@ jobs:
861861

862862
- name: Determine which E2E test applications should be run
863863
id: matrix
864-
run: yarn --silent ci:build-matrix --base=${{ github.event.pull_request.base.sha }} >> $GITHUB_OUTPUT
864+
run: yarn --silent ci:build-matrix --base=${{ (github.event_name == 'pull_request' && github.event.pull_request.base.sha) || '' }} >> $GITHUB_OUTPUT
865865
working-directory: dev-packages/e2e-tests
866866

867867
- name: Determine which optional E2E test applications should be run
868868
id: matrix-optional
869-
run: yarn --silent ci:build-matrix-optional --base=${{ github.event.pull_request.base.sha }} >> $GITHUB_OUTPUT
869+
run: yarn --silent ci:build-matrix-optional --base=${{ (github.event_name == 'pull_request' && github.event.pull_request.base.sha) || '' }} >> $GITHUB_OUTPUT
870870
working-directory: dev-packages/e2e-tests
871871

872872
job_e2e_tests:

0 commit comments

Comments
 (0)