Skip to content

Commit b198f40

Browse files
committed
ci: 🎡 add mirror to Gitlab workflow
1 parent 4619f16 commit b198f40

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

‎.github/workflows/mirror.yml

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

0 commit comments

Comments
 (0)