Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fengzch-das
nunchaku
Commits
a161ddfd
Unverified
Commit
a161ddfd
authored
Jul 21, 2025
by
Muyang Li
Committed by
GitHub
Jul 21, 2025
Browse files
[Dont Sync] update the sync CI (#552)
* add sync ci * rename the repo name
parent
57defc8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
.github/workflows/sync-to-private.yml
.github/workflows/sync-to-private.yml
+7
-9
No files found.
.github/workflows/sync-to-private.yml
View file @
a161ddfd
name
:
Synchronize to Private Repository
on
:
workflow_dispatch
:
push
:
branches
:
-
dev
-
main
permissions
:
contents
:
write
jobs
:
cherry-pick-commits
:
runs-on
:
ubuntu-latest
if
:
github.repository == '
mit-han-lab
/nunchaku'
if
:
github.repository == '
nunchaku-tech
/nunchaku'
steps
:
-
name
:
Clone private repository
run
:
|
git clone https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/
mit-han-lab
/nunchaku-dev.git
git clone https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/
nunchaku-tech
/nunchaku-dev.git
-
name
:
Add public remote and fetch
run
:
|
cd nunchaku-dev
git remote add public https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/
mit-han-lab
/nunchaku.git
git fetch public
dev
-
name
:
Cherry-pick latest commit from public/
dev
git remote add public https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/
nunchaku-tech
/nunchaku.git
git fetch public
main
-
name
:
Cherry-pick latest commit from public/
main
run
:
|
set -e
cd nunchaku-dev
COMMIT=$(git rev-parse public/
dev
)
COMMIT=$(git rev-parse public/
main
)
COMMIT_MSG=$(git log -1 --pretty=%B $COMMIT)
echo "Latest commit: $COMMIT"
...
...
@@ -53,7 +52,6 @@ jobs:
IGNORED_FILES=(
".github/workflows/sync-to-private.yml"
".github/workflows/auto-merge-main-into-dev.yml"
)
echo "Attempting cherry-pick..."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment