Skip to content

Commit 5301949

Browse files
committed
fix: persist bumped version back to repo after CI bump
- VERSION file updated on dev after each CI bump - Ensures subsequent pushes see the correct (bumped) version - Excluded from CI paths filter, so bump commits dont trigger loops - Fix: bump version is now persisted + pushed back to dev
1 parent a022454 commit 5301949

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/build-and-publish.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,15 @@ jobs:
120120
echo "Bumping $VERSION → $NEW_VERSION"
121121
echo "version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
122122
123-
# NOTE: bumped version is only used as CI output for build jobs.
124-
# VERSION on dev stays at the previous bump value (set by prior CI run). This avoids noise commits.
123+
# Persist bumped version back to repo (VERSION/lpb.stack.env excluded
124+
# from CI paths filter, so this won't trigger a new CI run)
125+
echo "$NEW_VERSION" > VERSION
126+
sed -i "s/^LPB_PI_REF=.*/LPB_PI_REF=$NEW_VERSION/" lpb.stack.env
127+
git config user.name "ci-localpibox"
128+
git config user.email "ci@localpibox.dev"
129+
git add VERSION lpb.stack.env
130+
git commit -m "chore: bump VERSION $NEW_VERSION [skip-version]" || echo "Nothing to commit"
131+
git push origin dev --force-with-lease || echo "Push failed (already up-to-date)"
125132
126133
- name: Create tags on all repos
127134
env:

0 commit comments

Comments
 (0)