Skip to content

Commit

Permalink
Merge pull request #18 from home-assistant-libs/fix-builds-at-the-beg…
Browse files Browse the repository at this point in the history
…inning-of-the-month

Make sure the generated version is Python safe
  • Loading branch information
agners committed Jun 1, 2023
2 parents c0d2001 + 229f224 commit 3e90d17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
elif [[ "${version}" =~ (main|dev) ]]; then
today="$(date --utc '+%Y-%m-%d')"
midnight_timestamp="$(date --utc +%s --date=$today)"
calver_date="$(date --utc --date=$today '+%Y.%-m.dev%d')"
calver_date="$(date --utc --date=$today '+%Y.%-m.dev%-d')"
commit_count="$(git rev-list --count --since=$midnight_timestamp HEAD)"
commit_count="$(printf "%02d" ${commit_count})"
version="${calver_date}${commit_count}"
Expand Down

0 comments on commit 3e90d17

Please sign in to comment.