Skip to content

Commit

Permalink
Use release tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro committed Aug 4, 2023
1 parent 3390826 commit 04bad29
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.event.release.tag_name }}#v}"
echo "Version set to $VERSION"
sed -i -e "s/RELEASE_VERSION/$VERSION/g" package.json
Expand Down

0 comments on commit 04bad29

Please sign in to comment.