From 8772d8c997cd5fa475078c2e91a979b368ce4e1f Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Thu, 2 Oct 2025 19:12:05 +0000 Subject: [PATCH] Add the PR head as reference to the checkout action of the splitter job. (#981) (#1005) This is a backport of PR #981 as merged into main (ec35c74). SUMMARY During the workflow checks of one of my previous pull requests, I ran into an error as result of a new integration test that was added in the main branch but which was not present in my pull request (https://github.com/ansible-collections/kubernetes.core/actions/runs/16787189478/job/47540604109). I'd find out that the reference for the repository checkout for the splitter job was not set and therefor it referenced to the main branch. With this change, the head of the pull request is used as reference for the repository checkout action, in the splitter job. This way it will not fail when someone creates a PR that doesn't have newly added integration tests that were added to the main branch in the meantime. It also adds that newly added integration tests will be tested during the PR workflow checks already. ISSUE TYPE Bugfix Pull Request COMPONENT NAME bugfix in the workflow ADDITIONAL INFORMATION n/a Reviewed-by: Bianca Henderson --- .github/workflows/integration-tests.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml index de6b7c90..adfb13e5 100644 --- a/.github/workflows/integration-tests.yaml +++ b/.github/workflows/integration-tests.yaml @@ -26,6 +26,7 @@ jobs: with: path: ${{ env.source_dir }} fetch-depth: "0" + ref: ${{ github.event.pull_request.head.sha }} - name: list changes for pull request id: splitter