rocm_jax/.github/workflows/rocm-nightly-upstream-sync.yml
2024-11-05 11:32:09 -06:00

27 lines
721 B
YAML

# Pulls the latest changes from upstream into main and opens a PR to merge
# them into rocm-main.
name: ROCm Nightly Upstream Sync
on:
workflow_dispatch:
schedule:
- 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 }}