Skip to content

Commit 5257915

Browse files
committed
Fix version number for releases
1 parent f2fe821 commit 5257915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
commit_count="$(git rev-list --count --since=$midnight_timestamp HEAD)"
3232
commit_count="$(printf "%02d" ${commit_count})"
3333
version="${calver_date}${commit_count}"
34-
else
34+
elif [[ "${{ github.ref }}" =~ ^refs/heads/ ]]; then
3535
today="$(date --utc '+%Y-%m-%d')"
3636
midnight_timestamp="$(date --utc +%s --date=$today)"
3737
calver_date="$(date --utc --date=$today '+%Y.%-m.dev%-d')"

0 commit comments

Comments
 (0)