Skip to content

Commit 0d7bf32

Browse files
Merge pull request #63 from namehash/fix-workflow
fix-workflow
2 parents 6991e35 + ced2c06 commit 0d7bf32

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,19 @@ jobs:
1818
matrix:
1919
os: [ubuntu-latest, windows-latest, macOS-latest]
2020
python-version: [3.8, 3.11]
21-
21+
22+
permissions:
23+
contents: write
24+
2225
steps:
23-
- uses: actions/checkout@v3
24-
26+
- if: ${{ github.event_name == 'pull_request' }}
27+
uses: actions/checkout@v4
28+
with:
29+
ref: ${{ github.event.pull_request.head.ref }}
30+
31+
- if: ${{ github.event_name != 'pull_request' }}
32+
uses: actions/checkout@v4
33+
2534
- name: Install poetry
2635
run: pipx install poetry
2736

0 commit comments

Comments
 (0)