We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6991e35 + ced2c06 commit 0d7bf32Copy full SHA for 0d7bf32
1 file changed
.github/workflows/test.yml
@@ -18,10 +18,19 @@ jobs:
18
matrix:
19
os: [ubuntu-latest, windows-latest, macOS-latest]
20
python-version: [3.8, 3.11]
21
-
+
22
+ permissions:
23
+ contents: write
24
25
steps:
- - uses: actions/checkout@v3
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
33
34
- name: Install poetry
35
run: pipx install poetry
36
0 commit comments