Skip to content

Commit 369ed7e

Browse files
authored
Merge pull request #61 from upstat-io/dev
refactor: split oversized files for code hygiene compliance
2 parents f56097a + 3caabe5 commit 369ed7e

16 files changed

Lines changed: 2215 additions & 2191 deletions

File tree

.github/workflows/auto-release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: Auto Release
22

33
# Automatically tag and release on every merge to master — but ONLY after CI passes.
44
# Uses CalVer: v2026.02.27.N-alpha (UTC date + daily build counter + release stage).
5-
# The version is read directly from BUILD_NUMBER (the single source of truth).
5+
# The daily counter (N) is derived from git history via bump-build.sh, so multiple
6+
# merges on the same day correctly get .1, .2, .3, etc.
67
# No commits to master — just tags the merge commit directly.
78

89
on:
@@ -52,7 +53,11 @@ jobs:
5253
- name: Derive release tag
5354
id: tag
5455
run: |
55-
# BUILD_NUMBER is the single source of truth — use it directly
56+
# Derive build number from git history — handles daily counter increment.
57+
# bump-build.sh counts first-parent commits to master since midnight UTC,
58+
# so the 2nd merge of the day gets .2, 3rd gets .3, etc.
59+
./scripts/bump-build.sh
60+
5661
if [[ ! -f BUILD_NUMBER ]]; then
5762
echo "::error::BUILD_NUMBER file not found on master"
5863
exit 1

0 commit comments

Comments
 (0)