Repository navigation
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 README code blocks | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - squircle.css | |
| - merge.js | |
| - plugin.js | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run sync script | |
| run: ./scripts/sync-readme.sh | |
| - name: Commit if changed | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git diff --quiet README.md || { | |
| git add README.md | |
| git commit -m "docs: sync README code blocks" | |
| git push | |
| } |