From 770817bfe9983ad9adda0ad0c0cb3b60cb6b692b Mon Sep 17 00:00:00 2001 From: 99mini Date: Tue, 3 Jun 2025 12:35:57 +0900 Subject: [PATCH] chore: get prev tag --- .github/workflows/create-release.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 0ca2500..98844c5 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -22,6 +22,13 @@ jobs: steps: - name: ✅ Checkout uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Git + run: | + git config --global user.name "GitHub Actions Bot" + git config --global user.email "github-actions[bot]@users.noreply.github.com" - name: Extract version from PR title id: extract-version @@ -39,9 +46,6 @@ jobs: - name: Create and push tag run: | - git config --global user.name "GitHub Actions Bot" - git config --global user.email "github-actions[bot]@users.noreply.github.com" - TAG_NAME="v${{ steps.extract-version.outputs.VERSION }}" echo "Creating tag: $TAG_NAME"