Skip to content

Commit 3208eda

Browse files
committed
[CI] adapt to python version format
1 parent ef953c9 commit 3208eda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313

1414
- name: Set environnment package version from commit
1515
run: |
16-
SHORT_SHA=$(echo ${{ github.sha }} | cut -c-12)
17-
echo "PACKAGE_VERSION=0.2.$(date +%Y%m%d)-${SHORT_SHA}" >> $GITHUB_ENV # use same convention as Go bindings
16+
SHORT_SHA=$(echo ${{ github.sha }} | cut -c-6)
17+
echo "PACKAGE_VERSION=0.2.$(date +%Y%m%d).$((16#${SHORT_SHA}))" >> $GITHUB_ENV # use similar convention as Go bindings, but with decimal digits only
1818
1919
- name: Set up Python 3.12
2020
uses: actions/setup-python@v3

0 commit comments

Comments
 (0)