Skip to content

Commit a1890b1

Browse files
authored
Fix release tag parsing (#1737)
* Use release tag name * Tweak job * Try different expression * Use github.ref * Tweak it more * Remove echo
1 parent 8313e17 commit a1890b1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/abi.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@ jobs:
3535
- name: Update version from tag
3636
working-directory: ./contracts/dist
3737
run: |
38-
VERSION="0.1.0"
39-
if [ "${{ env.GITHUB_REF_TYPE }}" = "tag" ]; then
40-
VERSION="${GITHUB_REF_NAME#v}"
41-
fi
42-
38+
VERSION=${GITHUB_REF_NAME#v}
4339
echo "Version set to $VERSION"
4440
sed -i -e "s/RELEASE_VERSION/$VERSION/g" package.json
4541

0 commit comments

Comments
 (0)