Skip to content

Commit b1dbac0

Browse files
CopilotAzgaar
andauthored
Auto versioning (#1348)
* Initial plan * fix: add ref to checkout step and stage public/**/*.js in bump workflow Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>
1 parent f6837c0 commit b1dbac0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/bump-version.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
- name: Checkout
2020
uses: actions/checkout@v5
2121
with:
22+
# Check out the base branch (master) so we are on a real branch, not
23+
# a detached PR merge ref, which makes git push work without arguments.
24+
ref: ${{ github.event.pull_request.base.ref }}
2225
# fetch-depth 2 so HEAD~1 resolves to the pre-merge master commit
2326
fetch-depth: 2
2427
# Use a PAT so the pushed bump commit can trigger deploy.yml
@@ -66,7 +69,10 @@ jobs:
6669
6770
git config user.name "github-actions[bot]"
6871
git config user.email "github-actions[bot]@users.noreply.github.com"
72+
# Stage versioning files + any public/**/*.js whose dynamic import
73+
# hashes may have been refreshed by updatePublicJsDynamicImportHashes
6974
git add public/versioning.js package.json package-lock.json src/index.html
75+
git add public/ 2>/dev/null || true
7076
7177
if ! git diff --cached --quiet; then
7278
git commit -m "chore: bump version to $NEW_VERSION"

0 commit comments

Comments
 (0)