This repository was archived by the owner on Jan 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 38
38
run : npx codecov
39
39
40
40
start-e2e-tests :
41
+ # Note: we only run e2e tests automatically if this PR is not from a fork, as forks won't have access to secrets
42
+ if : ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}
41
43
needs : [build]
42
44
runs-on : [ubuntu-latest]
43
45
52
54
sha : ${{ github.event.pull_request.head.sha || github.sha }}
53
55
54
56
- name : Trigger end-to-end tests workflow
55
- # Note: we only run e2e tests automatically if this PR is not from a fork, as forks won't have access to secrets
56
- if : ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}
57
57
uses : benc-uk/workflow-dispatch@v1
58
58
with :
59
59
workflow : End-to-end Tests
Original file line number Diff line number Diff line change 33
33
echo "::set-output name=pr_git_sha::$(git rev-parse HEAD)"
34
34
35
35
- name : Mark end-to-end tests as pending with run URL
36
+ # For manual runs (e.g for fork PRs) don't update commit status as there won't be permissions to do so
37
+ if : ${{ github.event.inputs.pull_request_id != '' }}
36
38
uses : Sibz/github-status-action@v1
37
39
with :
38
40
authToken : ${{ secrets.GITHUB_TOKEN }}
97
99
yarn e2e:ci
98
100
99
101
- name : Mark end-to-end tests as failed
100
- if : ${{ failure() }}
102
+ # For manual runs (e.g for fork PRs) don't update commit status as there won't be permissions to do so
103
+ if : ${{ failure() && github.event.inputs.pull_request_id != '' }}
101
104
uses : Sibz/github-status-action@v1
102
105
with :
103
106
authToken : ${{ secrets.GITHUB_TOKEN }}
@@ -113,6 +116,8 @@ jobs:
113
116
114
117
steps :
115
118
- name : Mark end-to-end tests as succeeded
119
+ # For manual runs (e.g for fork PRs) don't update commit status as there won't be permissions to do so
120
+ if : ${{ github.event.inputs.pull_request_id != '' }}
116
121
uses : Sibz/github-status-action@v1
117
122
with :
118
123
authToken : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments