From bbecb91a55a2925c1971bffeb886009387884c12 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 19 Jul 2026 11:53:46 +0000 Subject: [PATCH] ci: match dependency branch by head_ref on pull_request events (lib-tests) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lib-tests.yml computed the dependency-branch as `github.ref_name`, which on pull_request events is the PR merge ref (e.g. `1395/merge`), not the source branch — so it never found the matching sibling branch and fell back to each dep's main. This breaks coordinated cross-repo PRs (e.g. a library that pins a renamed dependency present only on the sibling branch). Use `github.head_ref || github.ref_name`, matching docs-build.yml and smoke-tests.yml, which already do this. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_013ciVftxvYpefh59wSkR7jN --- .github/workflows/lib-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lib-tests.yml b/.github/workflows/lib-tests.yml index 7c14f63..3af6240 100644 --- a/.github/workflows/lib-tests.yml +++ b/.github/workflows/lib-tests.yml @@ -57,7 +57,7 @@ jobs: - name: Clone dependency libraries (matching branch if it exists) run: | set -e - BRANCH="${{ github.ref_name }}" + BRANCH="${{ github.head_ref || github.ref_name }}" for dep in ${{ steps.map.outputs.deps }}; do git clone "https://github.com/PyAutoLabs/$dep" "$dep" if git -C "$dep" ls-remote --exit-code --heads origin "$BRANCH" >/dev/null 2>&1; then