Sync Files #28
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 Files | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "template/**" | |
| - ".github/workflows/sync.yml" | |
| - ".github/scripts/sync.sh" | |
| schedule: | |
| # Run daily at midnight UTC to keep downstream repositories in sync | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| sync: | |
| name: Sync Files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| - name: Install StyLua | |
| run: npm install -g @johnnymorganz/stylua-bin | |
| - name: Sync template files to downstream repositories | |
| run: bash .github/scripts/sync.sh | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_PAT }} |