mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-03-22 15:17:23 +01:00
fix: add ref to checkout step and stage public/**/*.js in bump workflow
Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>
This commit is contained in:
parent
f2d666f31b
commit
70fe74615a
1 changed files with 6 additions and 0 deletions
6
.github/workflows/bump-version.yml
vendored
6
.github/workflows/bump-version.yml
vendored
|
|
@ -19,6 +19,9 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
# Check out the base branch (master) so we are on a real branch, not
|
||||
# a detached PR merge ref, which makes git push work without arguments.
|
||||
ref: ${{ github.event.pull_request.base.ref }}
|
||||
# fetch-depth 2 so HEAD~1 resolves to the pre-merge master commit
|
||||
fetch-depth: 2
|
||||
# Use a PAT so the pushed bump commit can trigger deploy.yml
|
||||
|
|
@ -66,7 +69,10 @@ jobs:
|
|||
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
# Stage versioning files + any public/**/*.js whose dynamic import
|
||||
# hashes may have been refreshed by updatePublicJsDynamicImportHashes
|
||||
git add public/versioning.js package.json package-lock.json src/index.html
|
||||
git add public/ 2>/dev/null || true
|
||||
|
||||
if ! git diff --cached --quiet; then
|
||||
git commit -m "chore: bump version to $NEW_VERSION"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue