Skip to content

Commit

Permalink
Merge rocm-main into the CI branch to avoid running old CI code
Browse files Browse the repository at this point in the history
  • Loading branch information
charleshofer committed Nov 14, 2024
1 parent f8ba28c commit 0b49fb1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/rocm-nightly-upstream-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,15 @@ env:
SYNC_BRANCH_NAME: ci-upstream-sync-${{ github.run_number }}_${{ github.run_attempt }}
jobs:
sync-main:
#permissions:
# contents: write
runs-on: ubuntu-latest
steps:
- run: |
gh auth status
#gh repo view rocm/jax
gh repo sync rocm/jax -b main
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
create-sync-branch:
needs: sync-main
#permissions:
# contents: write
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -38,11 +33,13 @@ jobs:
git fetch
git checkout origin/main
git checkout -b $SYNC_BRANCH_NAME
# Try and merge rocm-main into this new branch so that we don't run upstream's CI code
git merge rocm-main || true
# If the merge creates conflicts, we want to abort and push to origin anyways so that a dev can resolve the conflicts
git merge --abort || true
git push origin HEAD
open-sync-pr:
needs: create-sync-branch
#permissions:
# pull-requests: write
runs-on: ubuntu-latest
steps:
- run: |
Expand Down

0 comments on commit 0b49fb1

Please sign in to comment.