mirror of
https://github.com/SAT-R/sa2.git
synced 2026-10-28 09:43:38 +00:00
ensure CI checks out PR head (#5)
This commit is contained in:
1 parent
dcb90ccbd7
commit
cd046fc862
1 file changed
+8
-1
@@ -11,9 +11,16 @@ jobs:
|
||||
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork || github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.fork}}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
- name: Checkout PR
|
||||
if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target'}}
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Checkout
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: Checkout gh-pages
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
uses: actions/checkout@master
|
||||
|
||||
Reference in new issue
Block a user