-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 829e830
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "Mirror" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
schedule: | ||
- cron: '0 20 * * *' | ||
|
||
jobs: | ||
run: | ||
name: Sync to Gitee | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Manually mirror | ||
run: | | ||
mirror() { | ||
git clone "https://github.com/$1/$2" | ||
cd "$2" | ||
git remote add gitee "https://jaywcjlove:${{ secrets.GITEE_TOKEN }}@gitee.com/jaywcjlove/$2.git" | ||
git remote set-head origin -d | ||
git push gitee --prune +refs/remotes/origin/*:refs/heads/* +refs/tags/*:refs/tags/* | ||
cd .. | ||
} | ||
mirror jaywcjlove github-rank |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Auto Gitee Mirror | ||
|
||
Mirror | ||
|
||
Use GitHub Actions to sync from GitHub to Gitee |