File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 runs-on : ubuntu-latest
2222
2323 steps :
24- - name : Checkout candidate (automatic )
25- if : ${{ github.event_name == 'pull_request' }}
24+ - name : Checkout candidate (pull request / push )
25+ if : ${{ github.event_name == 'pull_request' || github.event_name == 'push' }}
2626 uses : actions/checkout@v2
2727 with :
2828 path : candidate
@@ -33,18 +33,25 @@ jobs:
3333 GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
3434 run : gh repo clone ${{ github.repository }} candidate && cd candidate && gh pr checkout -R ${{ github.repository }} ${{ github.event.inputs.pr }}
3535
36- - name : Checkout reference (automatic )
36+ - name : Checkout reference (pull request )
3737 if : ${{ github.event_name == 'pull_request' }}
3838 uses : actions/checkout@v2
3939 with :
4040 ref : ${{ github.event.pull_request.base.ref }}
4141 path : reference
4242
43+ - name : Checkout reference (push)
44+ if : ${{ github.event_name == 'push' }}
45+ uses : actions/checkout@v2
46+ with :
47+ ref : ${{ github.event.before }}
48+ path : reference
49+
4350 - name : Checkout reference (manual)
4451 if : ${{ github.event_name == 'workflow_dispatch' }}
4552 env :
4653 GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
47- run : gh repo clone ${{ github.repository }} reference && cd reference && git checkout --track origin/$(gh pr view ${{ github.event.inputs.pr }} --json baseRefName --jq '.baseRefName')
54+ run : gh repo clone ${{ github.repository }} reference && cd reference && git checkout origin/$(gh pr view ${{ github.event.inputs.pr }} --json baseRefName --jq '.baseRefName')
4855
4956 - name : Run testing container
5057 run : |
You can’t perform that action at this time.
0 commit comments