From 2b344084884271245799281af6f3bc5637735c99 Mon Sep 17 00:00:00 2001 From: "Daniel A.C. Martin" Date: Thu, 2 Jan 2025 18:20:13 +0000 Subject: [PATCH] CI: Only fetch the current branch --- .github/actions/update-built-files/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/update-built-files/action.yml b/.github/actions/update-built-files/action.yml index 1778fc7d6..24129a882 100644 --- a/.github/actions/update-built-files/action.yml +++ b/.github/actions/update-built-files/action.yml @@ -19,7 +19,8 @@ runs: shell: bash if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', inputs.baseline-branch) }} run: | - git pull + git fetch origin $(git rev-parse --abbrev-ref HEAD) + git merge --ff-only cp pnpm-lock.yaml pnpm-lock-committed.yaml git add pnpm-lock-committed.yaml git commit -m "[skip ci] Update built files" && git push || true