Commit Sync #8
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: Commit Sync | |
| on: | |
| push: | |
| branches: | |
| - master | |
| schedule: | |
| - cron: '0 0 * * *' # Run daily at midnight UTC | |
| jobs: | |
| sync-commits: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| fetch-depth: 0 | |
| - name: Run commit sync | |
| env: | |
| GL_USERNAME: ${{ secrets.GL_USERNAME }} | |
| GH_REPOSITORY: ${{ secrets.GH_REPOSITORY }} | |
| GH_USERNAME: ${{ secrets.GH_USERNAME }} | |
| GH_EMAIL: ${{ secrets.GH_EMAIL }} | |
| GH_SSH_KEY: ${{ secrets.GH_SSH_KEY }} | |
| run: ./script.sh |