Enhanced UI #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync app 404 fallback | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'docs/app/index.html' | |
| workflow_dispatch: | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: cp docs/app/index.html docs/app/404.html | |
| - name: Commit if changed | |
| run: | | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git config user.name "github-actions[bot]" | |
| git add docs/app/404.html | |
| git diff --staged --quiet || git commit -m "chore: sync app/404.html from index.html [skip ci]" | |
| git diff HEAD~1..HEAD --quiet || git push |