We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fdeae1 commit 7a6fd04Copy full SHA for 7a6fd04
.github/workflows/scala3doc.yaml
@@ -4,7 +4,7 @@ on:
4
push:
5
branches:
6
- master
7
- pull_request:
+ pull_request_target:
8
jobs:
9
build:
10
runs-on: ubuntu-latest
@@ -13,6 +13,19 @@ jobs:
13
- name: Git Checkout
14
uses: actions/checkout@v2
15
16
+ - name: Checkout to PR code
17
+ env:
18
+ PR_NUMBER: ${{ github.event.pull_request.number }}
19
+ run : |
20
+ if [[ -z "${PR_NUMBER}" ]]; then
21
+ REF=refs/pull/$PR_NUMBER/merge
22
+ echo checking $REF
23
+ git fetch origin $REF:$REF
24
+ git checkout $REF
25
+ else
26
+ echo Not a pull request do not need to checkout
27
+ fi
28
+
29
- name: Cache Coursier
30
uses: actions/cache@v1
31
with:
0 commit comments