Fix nightly sync permissions (#124)

This commit is contained in:
charleshofer 2024-11-05 11:32:09 -06:00 committed by GitHub
parent 700f3bdccc
commit 650e70ab2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,13 +8,19 @@ on:
- cron: '0 6 * * 1-5'
jobs:
sync-main:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- run: gh repo sync rocm/jax -b main
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
open-sync-pr:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- run: |
gh pr create --repo $GITHUB_REPOSITORY --head main --base rocm-main --title "CI: $(date +%x) upstream sync" --body "Daily sync with upstream"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}