Skip to content

Commit 650e70a

Browse files
authored
Fix nightly sync permissions (#124)
1 parent 700f3bd commit 650e70a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/rocm-nightly-upstream-sync.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,19 @@ on:
88
- cron: '0 6 * * 1-5'
99
jobs:
1010
sync-main:
11+
permissions:
12+
contents: write
1113
runs-on: ubuntu-latest
1214
steps:
1315
- run: gh repo sync rocm/jax -b main
1416
env:
1517
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1618
open-sync-pr:
19+
permissions:
20+
pull-requests: write
1721
runs-on: ubuntu-latest
1822
steps:
1923
- run: |
2024
gh pr create --repo $GITHUB_REPOSITORY --head main --base rocm-main --title "CI: $(date +%x) upstream sync" --body "Daily sync with upstream"
25+
env:
26+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)