From 8bf63c40b26018497182e629ae989f85e51a8f5a Mon Sep 17 00:00:00 2001 From: Dengke Tang Date: Tue, 28 Feb 2023 17:41:54 -0800 Subject: [PATCH] use github output --- .github/workflows/release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b9b5718..8ff138b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,16 +30,17 @@ jobs: submodules: recursive - name: Prepare Package Script + id: prepare-package # Update the version in code and generate the package. run: | version_with_v=$(git describe --tags --abbrev=0) VERSION=$(echo ${version_with_v} | cut -f2 -dv) sed -i "s/#define CRT_VERSION .*/#define CRT_VERSION \"$VERSION\"/g" ext/crt.c - export VERSION="${VERSION}" + echo "VERSION="${VERSION}" >> $GITHUB_OUTPUT python3 dev-scripts/prepare_pecl_release.py --name aws-crt --user aws-crt --email aws-sdk-common-runtime@amazon.com --version ${VERSION} - name: Upload artifacts uses: actions/upload-artifact@v3 with: - name: pecl_package_$VERSION - path: awscrt-$VERSION.tgz \ No newline at end of file + name: pecl_package_${{ steps.prepare-package.outputs.VERSION }} + path: awscrt-${{ steps.prepare-package.outputs.VERSION }}.tgz \ No newline at end of file