From a16c015f441a2d7ca6899e151083aa45512b4851 Mon Sep 17 00:00:00 2001 From: ShrBox Date: Sun, 4 Feb 2024 23:01:54 +0800 Subject: [PATCH] ci: fix auto version --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 92d7e5fa..990f39fb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -108,7 +108,7 @@ jobs: mv ../release/legacy-script-engine-${{ matrix.backend }} . cp ../tooth.template.json tooth.json sed -i "s/\${engine}/${{ matrix.backend }}/g" tooth.json - sed -i "s/\${version}/${{ github.event.release.tag_name }}/g" tooth.json + sed -i "s/\${version}/$(echo ${{ github.event.release.tag_name }}|sed 's/v//')/g" tooth.json git add . git commit -m "Release ${{ github.event.release.tag_name }}" git tag ${{ github.event.release.tag_name }}