Skip to content

Commit 3d5b653

Browse files
committed
fixup workflow
1 parent 79b0231 commit 3d5b653

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: CI/CD
1+
name: build
22

33
on:
44
push:
55
branches:
66
- main
7-
- '**'
7+
- "**"
88
pull_request:
99
branches:
1010
- main
@@ -59,9 +59,9 @@ jobs:
5959
- name: Update version for staging (non-main branches)
6060
if: github.ref != 'refs/heads/main'
6161
run: |
62-
COMMIT_HASH=$(git rev-parse --short HEAD)
62+
TIMESTAMP=$(date +%Y%m%d%H%M%S)
6363
CURRENT_VERSION=$(grep '^version = ' pyproject.toml | sed 's/version = "\(.*\)"/\1/')
64-
NEW_VERSION="${CURRENT_VERSION}.dev${COMMIT_HASH}"
64+
NEW_VERSION="${CURRENT_VERSION}.dev${TIMESTAMP}"
6565
sed -i "s/^version = .*/version = \"${NEW_VERSION}\"/" pyproject.toml
6666
echo "Publishing version ${NEW_VERSION} to Test PyPI"
6767

0 commit comments

Comments
 (0)