Skip to content

Commit ca00059

Browse files
committed
ci: add GitLab mirror workflow
1 parent 7377150 commit ca00059

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: GitLab Mirror
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
mirror:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Push to GitLab
17+
run: |
18+
git remote add gitlab "https://${{ secrets.GITLAB_MIRROR_USER }}:${{ secrets.GITLAB_MIRROR_TOKEN }}@gitlab.com/orchard-cde/github.git"
19+
git push gitlab HEAD:main

0 commit comments

Comments
 (0)