diff --git a/.github/workflows/failing_tests.yml b/.github/workflows/failing_tests.yml index cf09428b..5d6011da 100644 --- a/.github/workflows/failing_tests.yml +++ b/.github/workflows/failing_tests.yml @@ -15,7 +15,7 @@ env: jobs: additional_tests: - if: ${{ github.event.workflow_run.conclusion == 'success' }} # Only run if the integration tests succeeded + if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} # Only run if the build succeeded strategy: fail-fast: false matrix: @@ -60,6 +60,9 @@ jobs: runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v4 + with: + # If manually triggered, use the current commit (GITHUB_SHA), otherwise use the head_sha from the Build workflow + ref: ${{ github.event.workflow_run.head_sha || github.sha }} - uses: ./.github/actions/install_deps - uses: dtolnay/rust-toolchain@master with: diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 4bea758b..86d34e5d 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -15,7 +15,7 @@ env: jobs: integration: - if: ${{ github.event.workflow_run.conclusion == 'success' }} # Only run if the build succeeded + if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} # Only run if the build succeeded strategy: fail-fast: false matrix: @@ -58,6 +58,9 @@ jobs: runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v4 + with: + # If manually triggered, use the current commit (GITHUB_SHA), otherwise use the head_sha from the Build workflow + ref: ${{ github.event.workflow_run.head_sha || github.sha }} - uses: ./.github/actions/install_deps - uses: dtolnay/rust-toolchain@master with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d155f6fc..6bfceb72 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ env: jobs: test: - if: ${{ github.event.workflow_run.conclusion == 'success' }} # Only run if the build succeeded + if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} # Only run if the build succeeded strategy: fail-fast: false matrix: @@ -60,6 +60,9 @@ jobs: runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v4 + with: + # If manually triggered, use the current commit (GITHUB_SHA), otherwise use the head_sha from the Build workflow + ref: ${{ github.event.workflow_run.head_sha || github.sha }} - uses: ./.github/actions/install_deps - uses: dtolnay/rust-toolchain@master with: