From ced2c060f5f22fd5ffa8b1544641cf08c4c2b869 Mon Sep 17 00:00:00 2001 From: "kwrobel.eth" Date: Thu, 23 Jan 2025 11:45:48 +0100 Subject: [PATCH] fix-workflow Signed-off-by: kwrobel.eth --- .github/workflows/test.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e7a07be..2fe66d0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,10 +18,19 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] python-version: [3.8, 3.11] - + + permissions: + contents: write + steps: - - uses: actions/checkout@v3 - + - if: ${{ github.event_name == 'pull_request' }} + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.ref }} + + - if: ${{ github.event_name != 'pull_request' }} + uses: actions/checkout@v4 + - name: Install poetry run: pipx install poetry