fix: checkout pull_request head always
@@ -41,6 +41,9 @@ jobs:
steps:
- uses: actions/checkout@v2.3.4
+ with:
+ ref: ${{ github.event.pull_request.head.ref }}
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Restore dependency cache
uses: actions/cache@v2.1.3
@@ -84,6 +87,9 @@ jobs:
steps:
- uses: actions/checkout@v2.3.4
+ with:
+ ref: ${{ github.event.pull_request.head.ref }}
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Restore dependency cache
uses: actions/cache@v2.1.3
