Skip to content

Commit 8fcb26c

Browse files
authored
fix: on-pr.yaml trim 0 from git rev (NVIDIA#409)
1 parent 1b54ff5 commit 8fcb26c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/on-pr.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ jobs:
7777
- name: Extract package version
7878
id: package_version
7979
run: |
80-
PACKAGE_VERSION=0.0.0-$(git rev-parse --short HEAD)
80+
GIT_REV=$(git rev-parse --short HEAD | sed 's/^0*//')
81+
PACKAGE_VERSION=0.0.0-$GIT_REV
8182
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV
8283
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_OUTPUT
8384
echo $PACKAGE_VERSION

0 commit comments

Comments
 (0)