chore: run one-time html repair on fix branch
This commit is contained in:
parent
6b422deb6a
commit
692bc15237
35
.github/workflows/fix-index-html-once.yml
vendored
Normal file
35
.github/workflows/fix-index-html-once.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
name: Caterium One-Time HTML Repair
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["fix/html-integrity-v1774"]
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
concurrency:
|
||||||
|
group: caterium-html-repair-v1774
|
||||||
|
cancel-in-progress: false
|
||||||
|
jobs:
|
||||||
|
repair:
|
||||||
|
if: ${{ !contains(github.event.head_commit.message, '[html-repair]') }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: fix/html-integrity-v1774
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
- run: node scripts/fix-index-html-once.mjs
|
||||||
|
- name: Commit repaired index
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
if git diff --quiet -- public/index.html; then
|
||||||
|
echo "No index change required"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
git config user.name "github-actions[bot]"
|
||||||
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
git add public/index.html
|
||||||
|
git commit -m "fix: close mobile style block [html-repair]"
|
||||||
|
git push origin HEAD:fix/html-integrity-v1774
|
||||||
Loading…
Reference in New Issue
Block a user