From e57612d703d939b25dccbc83ebce293d4f481ef5 Mon Sep 17 00:00:00 2001 From: nrslib <38722970+nrslib@users.noreply.github.com> Date: Sun, 22 Feb 2026 12:32:15 +0900 Subject: [PATCH] ci: tag PR head SHA instead of merge commit for hotfix support --- .github/workflows/auto-tag.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml index 1f61cad..0bcec2c 100644 --- a/.github/workflows/auto-tag.yml +++ b/.github/workflows/auto-tag.yml @@ -25,9 +25,9 @@ jobs: VERSION=$(echo "${{ github.event.pull_request.title }}" | sed 's/^Release //') echo "tag=$VERSION" >> "$GITHUB_OUTPUT" - - name: Create and push tag + - name: Create and push tag on PR head commit run: | - git tag "${{ steps.version.outputs.tag }}" + git tag "${{ steps.version.outputs.tag }}" "${{ github.event.pull_request.head.sha }}" git push origin "${{ steps.version.outputs.tag }}" publish: