Skip to content

Commit a161ddf

Browse files
authored
[Dont Sync] update the sync CI (#552)
* add sync ci * rename the repo name
1 parent 57defc8 commit a161ddf

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/sync-to-private.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
11
name: Synchronize to Private Repository
22
on:
3-
workflow_dispatch:
43
push:
54
branches:
6-
- dev
5+
- main
76
permissions:
87
contents: write
98
jobs:
109
cherry-pick-commits:
1110
runs-on: ubuntu-latest
12-
if: github.repository == 'mit-han-lab/nunchaku'
11+
if: github.repository == 'nunchaku-tech/nunchaku'
1312
steps:
1413
- name: Clone private repository
1514
run: |
16-
git clone https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/mit-han-lab/nunchaku-dev.git
15+
git clone https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/nunchaku-tech/nunchaku-dev.git
1716
- name: Add public remote and fetch
1817
run: |
1918
cd nunchaku-dev
20-
git remote add public https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/mit-han-lab/nunchaku.git
21-
git fetch public dev
22-
- name: Cherry-pick latest commit from public/dev
19+
git remote add public https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/nunchaku-tech/nunchaku.git
20+
git fetch public main
21+
- name: Cherry-pick latest commit from public/main
2322
run: |
2423
set -e
2524
cd nunchaku-dev
26-
COMMIT=$(git rev-parse public/dev)
25+
COMMIT=$(git rev-parse public/main)
2726
COMMIT_MSG=$(git log -1 --pretty=%B $COMMIT)
2827
2928
echo "Latest commit: $COMMIT"
@@ -53,7 +52,6 @@ jobs:
5352
5453
IGNORED_FILES=(
5554
".github/workflows/sync-to-private.yml"
56-
".github/workflows/auto-merge-main-into-dev.yml"
5755
)
5856
5957
echo "Attempting cherry-pick..."

0 commit comments

Comments
 (0)