Skip to content

Commit 6ee5694

Browse files
committed
ci: 🎡 add mirror action
1 parent 3583a14 commit 6ee5694

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/mirror.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
mirror:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- name: Push To Gitlab
15+
env:
16+
token: ${{ secrets.GITLAB_TOKEN }}
17+
run: |
18+
git config user.name "streamich"
19+
git config user.email "json-joy+streamich@users.noreply.github.com"
20+
git remote add mirror "https://oauth2:${token}@gitlab.com/streamich/json-joy.git"
21+
git push mirror master

0 commit comments

Comments
 (0)