-
-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (30 loc) · 1.18 KB
/
git_mirror.yml
File metadata and controls
34 lines (30 loc) · 1.18 KB
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
name: Mirror to Codeberg and GitLab
permissions:
contents: read
on:
push:
branches: [main]
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
fetch-depth: 0
- name: Mirror to GitLab
uses: cynicsketch/mirror-action@b1e3c960aead673763e5ccb22007129401a15917
with:
REMOTE: 'git@gitlab.com:ffflorian/node-packages.git'
REMOTE_NAME: 'gitlab-mirror'
GIT_SSH_KNOWN_HOSTS: 'gitlab.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAfuCHKVTjquxvt6CM6tdG4SLp1Btn/nOeHHE5UOzRdf'
GIT_SSH_PRIVATE_KEY: ${{ secrets.GITLAB_SECRET }}
PUSH_ALL_REFS: 'false'
- name: Mirror to Codeberg
uses: cynicsketch/mirror-action@b1e3c960aead673763e5ccb22007129401a15917
with:
REMOTE: 'git@codeberg.org:ffflorian/node-packages.git'
REMOTE_NAME: 'codeberg-mirror'
GIT_SSH_KNOWN_HOSTS: 'codeberg.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIVIC02vnjFyL+I4RHfvIGNtOgJMe769VTF1VR4EB3ZB'
GIT_SSH_PRIVATE_KEY: ${{ secrets.CODEBERG_SECRET }}
PUSH_ALL_REFS: 'false'