Skip to content

Commit

Permalink
[CI] adapt to python version format
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Aug 27, 2024
1 parent ef953c9 commit 3208eda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:

- name: Set environnment package version from commit
run: |
SHORT_SHA=$(echo ${{ github.sha }} | cut -c-12)
echo "PACKAGE_VERSION=0.2.$(date +%Y%m%d)-${SHORT_SHA}" >> $GITHUB_ENV # use same convention as Go bindings
SHORT_SHA=$(echo ${{ github.sha }} | cut -c-6)
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
- name: Set up Python 3.12
uses: actions/setup-python@v3
Expand Down

0 comments on commit 3208eda

Please sign in to comment.