why git describe doesn't work

This commit is contained in:
Dengke Tang
2023-02-28 16:18:46 -08:00
parent 1226b906c6
commit 071de01f6d
+1 -4
View File
@@ -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 [email protected] --version ${{ steps.tag.outputs.release_tag }}