Skip to content

Commit

Permalink
fix check that determines to use hash in package version
Browse files Browse the repository at this point in the history
  • Loading branch information
zerotacg committed Feb 13, 2024
1 parent 7bccd4e commit a3e7430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/package-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
[ "$VERSION" == "${{ env.main_branch }}" ] && VERSION=snapshot
FULL_VERSION=${VERSION}+sha.${COMMIT_HASH:0:8}
[ "$VERSION" == "${{ env.main_branch }}" ] && FULL_VERSION=${VERSION}
[ "$VERSION" == "snapshot" ] && FULL_VERSION=${VERSION}
echo VERSION=$VERSION FULL_VERSION=$FULL_VERSION
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
echo "full_version=${FULL_VERSION}" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit a3e7430

Please sign in to comment.