From d1d847eda9218add8db26a64b8f7b5433ec6eaad Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Tue, 23 Sep 2025 19:29:50 -0400 Subject: [PATCH] ci: fix checkout branches --- .github/workflows/sync-release-assets.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/sync-release-assets.yml b/.github/workflows/sync-release-assets.yml index 2c1ca903..97f9a383 100644 --- a/.github/workflows/sync-release-assets.yml +++ b/.github/workflows/sync-release-assets.yml @@ -35,9 +35,12 @@ jobs: - name: Create or checkout dist branch into dist directory run: | + git fetch origin if git rev-parse --verify origin/dist >/dev/null 2>&1; then echo "Dist branch exists, checking it out" git worktree add dist origin/dist + cd dist + git pull origin dist else echo "Dist branch doesn't exist, creating new one" git worktree add --orphan dist @@ -87,9 +90,12 @@ jobs: - name: Create or checkout gh-pages branch into gh-pages directory run: | + git fetch origin if git rev-parse --verify origin/gh-pages >/dev/null 2>&1; then echo "gh-pages branch exists, checking it out" git worktree add gh-pages origin/gh-pages + cd gh-pages + git pull origin gh-pages else echo "gh-pages branch doesn't exist, creating new one" git worktree add --orphan gh-pages