release(v1.7.5): retrigger CI bump; chore(ci): update bump workflow

This commit is contained in:
Ryan
2025-11-02 00:44:29 -04:00
committed by GitHub
parent 5b824888cb
commit c08876380b
2 changed files with 16 additions and 178 deletions

View File

@@ -9,6 +9,10 @@ on:
permissions:
contents: write
concurrency:
group: bump-and-sync-${{ github.ref }}
cancel-in-progress: false
jobs:
bump_and_sync:
runs-on: ubuntu-latest
@@ -17,6 +21,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: Extract version from commit message
id: ver
@@ -42,7 +47,15 @@ jobs:
window.APP_VERSION = '${{ steps.ver.outputs.version }}';
EOF
# ✂️ REMOVED: repo stamping of HTML/CSS/JS
- name: Sync with remote (rebase)
if: steps.ver.outputs.version != ''
shell: bash
run: |
set -euo pipefail
git fetch origin ${{ github.ref_name }}
# ensure we're on a local branch that tracks the remote
git checkout -B ${{ github.ref_name }} --track origin/${{ github.ref_name }} || git checkout -B ${{ github.ref_name }}
git pull --rebase origin ${{ github.ref_name }}
- name: Commit version.js only
if: steps.ver.outputs.version != ''
@@ -56,7 +69,7 @@ jobs:
echo "No changes to commit"
else
git commit -m "chore(release): set APP_VERSION to ${{ steps.ver.outputs.version }} [skip ci]"
git push
git push origin ${{ github.ref_name }}
fi
- name: Checkout filerise-docker
@@ -66,6 +79,7 @@ jobs:
repository: error311/filerise-docker
token: ${{ secrets.PAT_TOKEN }}
path: docker-repo
fetch-depth: 0
- name: Copy CHANGELOG.md and write VERSION
if: steps.ver.outputs.version != ''