Skip to content

Commit aed1209

Browse files
committed
ci: fix fetch of ci/update-pinned-tool-versions in workflow
Signed-off-by: Mikaël Barbero <mikael.barbero@eclipse-foundation.org>
1 parent 6a304c3 commit aed1209

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/maintenance-update-tool-versions.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ jobs:
7171
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
7272
gh auth setup-git
7373
74+
# Fetch the remote branch (if it exists) so --force-with-lease
75+
# has a valid baseline on this fresh checkout.
76+
git fetch origin "refs/heads/${BRANCH}:refs/remotes/origin/${BRANCH}" 2>/dev/null || true
77+
7478
git checkout -B "${BRANCH}"
7579
git add -A
7680
git commit -m "${TITLE}"

0 commit comments

Comments
 (0)