From a1890b1254274074b82ee5c0a70239991be9438c Mon Sep 17 00:00:00 2001 From: Shahul Hameed <10547529+shahthepro@users.noreply.github.com> Date: Fri, 4 Aug 2023 18:30:44 +0400 Subject: [PATCH] Fix release tag parsing (#1737) * Use release tag name * Tweak job * Try different expression * Use github.ref * Tweak it more * Remove echo --- .github/workflows/abi.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/abi.yml b/.github/workflows/abi.yml index 99e30c3068..a82a56a427 100644 --- a/.github/workflows/abi.yml +++ b/.github/workflows/abi.yml @@ -35,11 +35,7 @@ jobs: - name: Update version from tag working-directory: ./contracts/dist run: | - VERSION="0.1.0" - if [ "${{ env.GITHUB_REF_TYPE }}" = "tag" ]; then - VERSION="${GITHUB_REF_NAME#v}" - fi - + VERSION=${GITHUB_REF_NAME#v} echo "Version set to $VERSION" sed -i -e "s/RELEASE_VERSION/$VERSION/g" package.json