mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 18:13:09 +00:00
why git describe doesn't work
This commit is contained in:
@@ -35,10 +35,7 @@ jobs:
|
|||||||
- name: Prepare Package Script
|
- name: Prepare Package Script
|
||||||
# Update the version in code and generate the package.
|
# Update the version in code and generate the package.
|
||||||
run: |
|
run: |
|
||||||
version=$(git describe --tags --abbrev=0)
|
ls
|
||||||
version_without_v=$(echo ${version} | cut -f2 -dv)
|
|
||||||
echo "${version_without_v}" > VERSION
|
|
||||||
echo $VERSION
|
|
||||||
echo ${{ steps.tag.outputs.release_tag }}
|
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
|
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 }}
|
python3 dev-scripts/prepare_pecl_release.py --name aws-crt --user aws-crt --email [email protected] --version ${{ steps.tag.outputs.release_tag }}
|
||||||
|
|||||||
Reference in New Issue
Block a user