diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml index 3b9ed0f9a..5c0848286 100644 --- a/.github/workflows/update-version.yml +++ b/.github/workflows/update-version.yml @@ -52,11 +52,11 @@ jobs: run: | git config --local user.name "github-actions" git config --local user.email "github-actions@github.com" - git fetch origin ${HEAD_REF} - git checkout -B ${HEAD_REF} origin/${HEAD_REF} + git fetch origin "${HEAD_REF}" + git checkout -B "${HEAD_REF}" "origin/${HEAD_REF}" git add comfyui_version.py git diff --quiet && git diff --staged --quiet || git commit -m "chore: Update comfyui_version.py to match pyproject.toml" - git push origin HEAD:${HEAD_REF} + git push origin "HEAD:${HEAD_REF}" env: HEAD_REF: ${{ github.head_ref }} \ No newline at end of file