From a397ab7f7cd2d8f44477c47d3fa7c961fd32952c Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 13 Feb 2025 19:27:46 +0800 Subject: [PATCH] chore: fix tag_version --- .github/workflows/tag.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 911a1bf71..9ee38763b 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -27,7 +27,7 @@ jobs: const semverRegex = /chore: Release (v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-.]+)?)/; const match = commitMessage.match(semverRegex); if (match) { - fs.appendFileSync(process.env.GITHUB_ENV, `tag_version=true\n`); + fs.appendFileSync(process.env.GITHUB_ENV, `tag_version=${match[1]}\n`); } else { console.log("No SemVer found in commit body."); process.exit(0); @@ -46,4 +46,4 @@ jobs: -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ -H "Accept: application/vnd.github+json" \ https://api.github.com/repos/${{ github.repository }}/actions/workflows/build.yml/dispatches \ - -d '{"ref":"main", "inputs": {"tag_version": "${{ env.tag_version }}"}}' + -d '{"ref":"main", "inputs": {"tag_version": "true"}}'