Skip to content

Commit 93deb5d

Browse files
Create gitlab-mirror.yml
Add GitLab mirroring workflow
1 parent 9a55db7 commit 93deb5d

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Mirror to GitLab
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- master
7+
delete:
8+
branches:
9+
- main
10+
- master
11+
12+
jobs:
13+
mirror:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Import GPG key
21+
uses: crazy-max/ghaction-import-gpg@v5
22+
with:
23+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
24+
passphrase: ""
25+
git_user_signingkey: true
26+
git_commit_gpgsign: true
27+
git_user_email: ${{ secrets.GPG_USER_EMAIL }}
28+
git_committer_email: ${{ secrets.GPG_USER_EMAIL }}
29+
trust_level: ultimate
30+
git_config_global: true
31+
32+
- name: Mirror to GitLab
33+
uses: pixta-dev/repository-mirroring-action@v1
34+
with:
35+
target_repo_url: [email protected]:alphabetanetcom/local-python-code-protector.git
36+
ssh_private_key: ${{ secrets.GITLAB_SSH_PRIVATE_KEY }}
37+
commit_message: Mirror from GitHub.

0 commit comments

Comments
 (0)