Repo sync #57
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
| # Pull upstream changes from essential-contributions/risc0.nix daily at 12am UTC | |
| name: Repo sync | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| repo-sync: | |
| name: Sync upstream changes | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - uses: tibdex/github-app-token@v2 | |
| id: generate-token | |
| with: | |
| app_id: ${{ secrets.TOKEN_APP_ID }} | |
| private_key: ${{ secrets.TOKEN_APP_PRIVATE_KEY }} | |
| - name: repo-sync | |
| uses: repo-sync/github-sync@v2 | |
| with: | |
| source_repo: "https://github.com/essential-contributions/risc0.nix" | |
| source_branch: "main" | |
| destination_branch: "main" | |
| github_token: ${{ steps.generate-token.outputs.token }} |