Skip to content

Commit

Permalink
Fix release tag parsing (#1737)
Browse files Browse the repository at this point in the history
* Use release tag name

* Tweak job

* Try different expression

* Use github.ref

* Tweak it more

* Remove echo
  • Loading branch information
shahthepro committed Aug 4, 2023
1 parent 8313e17 commit a1890b1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/abi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1890b1

Please sign in to comment.