File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Synchronize to Private Repository
22on :
3- workflow_dispatch :
43 push :
54 branches :
6- - dev
5+ - main
76permissions :
87 contents : write
98jobs :
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"
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..."
You can’t perform that action at this time.
0 commit comments