Skip to content

Commit 935d576

Browse files
authored
Fix ci again (#94)
* Fetch the specific commit * [REVERT ME] Run the workflow in the PR context for now
1 parent 2c6a451 commit 935d576

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
push:
55
branches: [master]
6-
pull_request_target:
6+
pull_request:
77
branches: ['**']
88

99
jobs:
@@ -17,8 +17,12 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v2
20-
with:
21-
ref: ${{ github.event.pull_request.head.sha || github.sha }}
20+
21+
- run: |
22+
git fetch origin $REF
23+
git checkout $REF
24+
env:
25+
REF: ${{ github.event.pull_request.head.sha || github.sha }}
2226
2327
- name: Use Node.js ${{ matrix.node-version }}
2428
uses: actions/setup-node@v1

0 commit comments

Comments
 (0)