Skip to content

Commit 564e2f5

Browse files
stuggiclaude
andcommitted
Fix REPO_LIST_FILE path resolution when processing repos
Convert REPO_LIST_FILE to an absolute path before starting the repo processing loop. This fixes the error where the file couldn't be found when the script changes into cloned repository directories. The issue occurred because: - REPO_LIST_FILE was a relative path (feature_branch_repos.yaml) - When cd-ing into each repo's temp directory, the relative path became invalid - The skip_makefile_changes check failed with "no such file or directory" Solution: Use realpath to convert to absolute path before the loop starts. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 48d4b3f commit 564e2f5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/create-release-branch-v1.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@ jobs:
315315
exit 1
316316
fi
317317

318+
# Convert to absolute path since we'll be changing directories
319+
REPO_LIST_FILE="$(realpath "${REPO_LIST_FILE}")"
320+
echo "Using repository list file: ${REPO_LIST_FILE}"
321+
318322
# Read repositories from YAML file
319323
repos=$(yq e '.repos[].name' "${REPO_LIST_FILE}" | tr '\n' ' ')
320324

0 commit comments

Comments
 (0)