-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 987 Bytes
/
gitlab-mirror.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Mirror to GitLab
on:
push:
branches:
- main
- master
delete:
branches:
- main
- master
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ""
git_user_signingkey: true
git_commit_gpgsign: true
git_user_email: ${{ secrets.GPG_USER_EMAIL }}
git_committer_email: ${{ secrets.GPG_USER_EMAIL }}
trust_level: ultimate
git_config_global: true
- name: Mirror to GitLab
uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url: git@gitlab.com:alphabetanetcom/local-python-code-protector.git
ssh_private_key: ${{ secrets.GITLAB_SSH_PRIVATE_KEY }}
commit_message: Mirror from GitHub.