From 22433ddd19401a9af04270eca93ddfd5ee82c6a8 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 8 Jan 2025 14:02:05 +0000 Subject: [PATCH] workflows/sponsors-maintainers-man-completions: force checkout. We haven't run any commands that would have modified the working directory yet so this will better handle issues with stale files. --- .github/workflows/sponsors-maintainers-man-completions.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sponsors-maintainers-man-completions.yml b/.github/workflows/sponsors-maintainers-man-completions.yml index 10a200468e94e..bece072bfc64b 100644 --- a/.github/workflows/sponsors-maintainers-man-completions.yml +++ b/.github/workflows/sponsors-maintainers-man-completions.yml @@ -70,13 +70,13 @@ jobs: if git ls-remote --exit-code --heads origin "${BRANCH}" then - git checkout "${BRANCH}" + git checkout --force "${BRANCH}" git checkout "README.md" \ "docs/Manpage.md" \ "manpages/brew.1" \ "completions" else - git checkout --no-track -B "${BRANCH}" origin/master + git checkout --force --no-track -B "${BRANCH}" origin/master fi if brew update-sponsors