Fix up tests-download to properly run once core tests completed

pull/280/head
Patrick Robertson 2025-03-27 15:18:58 +04:00
rodzic fbf51f61b9
commit 46a51cce11
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -10,9 +10,6 @@ on:
workflows: ["Core Tests"] workflows: ["Core Tests"]
types: types:
- completed - completed
branches: [main]
paths:
- src/**
jobs: jobs:
tests: tests:
@ -30,7 +27,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
ref: ${{ github.event.workflow_run.head_branch || github.ref }} # For PRs, use the head commit SHA from the triggering workflow
ref: ${{ github.event.workflow_run.head_sha || github.ref }}
# If PR is from a fork, we need fetch-depth: 0
fetch-depth: ${{ github.event.workflow_run.head_repository.fork && '0' || '1' }}
- name: Install poetry - name: Install poetry
run: pipx install poetry run: pipx install poetry