Skip to content

Commit 799c590

Browse files
committed
feat: Mirror Pipeline
1 parent 3c24319 commit 799c590

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Mirror to GitLab
2+
3+
on:
4+
push:
5+
branches: ['**']
6+
tags: ['**']
7+
release:
8+
types: [published]
9+
10+
jobs:
11+
mirror:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout (full history)
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0 # complete history including tags
18+
19+
- name: Mirror to GitLab
20+
env:
21+
GITLAB_URL: ${{ secrets.GITLAB_URL }}
22+
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
23+
run: |
24+
git remote add gitlab "https://oauth2:${GITLAB_TOKEN}@${GITLAB_URL#https://}"
25+
git push gitlab --all --force
26+
git push gitlab --tags --force

‎.vscode/settings.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"java.configuration.updateBuildConfiguration": "interactive"
2+
"java.configuration.updateBuildConfiguration": "automatic"
33
}

0 commit comments

Comments
 (0)