77 description : " Pull Request ID"
88 required : false
99 default : " "
10+ sha :
11+ description : " GitHub SHA"
12+ required : false
13+ default : " "
1014
1115jobs :
1216 initialize :
4347 context : " End-to-end Tests"
4448 description : " Waiting for end-to-end tests to pass"
4549 state : " pending"
46- sha : ${{ steps.set_pr_git_sha.outputs.pr_git_sha || github.sha }}
50+ sha : ${{ steps.set_pr_git_sha.outputs.pr_git_sha || github.event.inputs.sha || github. sha }}
4751 target_url : https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
4852
4953 run-e2e-tests :
6468 # For non-fork PRs
6569 - uses : actions/checkout@v2
6670 if : ${{ github.event.inputs.pull_request_id == '' }}
71+ with :
72+ ref : ${{ github.event.inputs.sha || github.ref }}
6773
6874 # For manually run PRs
6975 - name : Initialize empty git repository
@@ -116,7 +122,7 @@ jobs:
116122 context : " End-to-end Tests"
117123 description : " End-to-end tests have failed"
118124 state : " failure"
119- sha : ${{ needs.initialize.outputs.pr_git_sha || github.sha }}
125+ sha : ${{ needs.initialize.outputs.pr_git_sha || github.event.inputs.sha || github. sha }}
120126 target_url : https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
121127
122128 finalize :
@@ -133,5 +139,5 @@ jobs:
133139 context : " End-to-end Tests"
134140 description : " End-to-end tests have passed"
135141 state : " success"
136- sha : ${{ needs.initialize.outputs.pr_git_sha || github.sha }}
142+ sha : ${{ needs.initialize.outputs.pr_git_sha || github.event.inputs.sha || github. sha }}
137143 target_url : https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
0 commit comments