From 071de01f6d8e65fd3fa8d3afc12581ab36617aa5 Mon Sep 17 00:00:00 2001 From: Dengke Tang Date: Tue, 28 Feb 2023 16:18:46 -0800 Subject: [PATCH] why git describe doesn't work --- .github/workflows/release.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3001c1f..7226f2c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,10 +35,7 @@ jobs: - name: Prepare Package Script # Update the version in code and generate the package. run: | - version=$(git describe --tags --abbrev=0) - version_without_v=$(echo ${version} | cut -f2 -dv) - echo "${version_without_v}" > VERSION - echo $VERSION + ls echo ${{ steps.tag.outputs.release_tag }} sed -i "s/#define CRT_VERSION \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/#define CRT_VERSION \"${{ steps.tag.outputs.release_tag }}\"/g" ext/crt.c python3 dev-scripts/prepare_pecl_release.py --name aws-crt --user aws-crt --email aws-sdk-common-runtime@amazon.com --version ${{ steps.tag.outputs.release_tag }}