From 18b2112e66d38d7b6b7ec5e443d43babb8a1478f Mon Sep 17 00:00:00 2001 From: huchenlei Date: Wed, 8 Jan 2025 17:44:12 -0500 Subject: [PATCH] Fix commit --- .github/workflows/update-version.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml index a136dcf9..ebb1aa60 100644 --- a/.github/workflows/update-version.yml +++ b/.github/workflows/update-version.yml @@ -46,6 +46,8 @@ jobs: run: | git config --local user.name "github-actions" git config --local user.email "github-actions@github.com" + git fetch origin ${{ github.head_ref }} + git checkout -B ${{ github.head_ref }} origin/${{ github.head_ref }} git add version.py git diff --quiet && git diff --staged --quiet || git commit -m "chore: Update version.py to match pyproject.toml" - git push + git push origin HEAD:${{ github.head_ref }}