| name: Roll pigweed | |
| on: | |
| schedule: | |
| # Runs every day at 15:00 UTC (8:00 AM PDT / 7:00 AM PST) | |
| - cron: '0 15 * * *' | |
| workflow_dispatch: # Allows you to trigger it manually from the Actions tab | |
| jobs: | |
| create-pull-request: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the earlgrey-hwe branch | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 | |
| with: | |
| python-version: '3.11' | |
| - name: Run Script | |
| run: | | |
| python presubmit/roller.py \ | |
| --remote pigweed=https://github.com/pigweed-project/pigweed.git \ | |
| MODULE.bazel | |
| - name: Generate GitHub App Token | |
| id: generate-token | |
| uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3 | |
| with: | |
| app-id: ${{ secrets.SYNCHRONIZE_BOT_APP_ID }} | |
| private-key: ${{ secrets.SYNCHRONIZE_BOT_PRIVATE_KEY }} | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@3ffccacd46053766916f087ce41d627c0b8cf2d1 # v8 | |
| with: | |
| token: ${{ steps.generate-token.outputs.token }} | |
| branch: automation/roll-pigweed | |
| base: main | |
| title: 'chore: roll pigweed' | |
| reviewers: cfrantz | |
| body: | | |
| This is an automated PR to roll forward to the latest pigweed. | |
| Please review and fix any bugs if they arise. | |
| labels: | | |
| automated-pr | |
| sync |