Skip to content

Commit 56d75b5

Browse files
authored
Create mirror.yml
1 parent f9c8a03 commit 56d75b5

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/mirror.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Mirror org repo to personal repo
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
mirror:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Clone source repository
14+
run: |
15+
git clone --mirror https://x-access-token:${{ secrets.MIRROR_TOKEN }}@github.com/nushdev/nush-app-vue.git repo
16+
17+
- name: Push to mirror repository
18+
run: |
19+
cd repo
20+
git remote set-url origin https://x-access-token:${{ secrets.MIRROR_TOKEN }}@github.com/Spleefies/nush-app-vue-mirror.git
21+
git push --mirror

0 commit comments

Comments
 (0)