Skip to content

Commit e6f71e5

Browse files
committed
chore: Use git mirror for GitLab and Codeberg
1 parent 747cd16 commit e6f71e5

File tree

3 files changed

+32
-47
lines changed

3 files changed

+32
-47
lines changed

.github/workflows/codeberg_mirror.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/git_mirror.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Mirror to Codeberg and GitLab
2+
permissions:
3+
contents: read
4+
5+
on:
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
mirror:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Mirror to GitLab
19+
uses: cynicsketch/mirror-action@b1e3c960aead673763e5ccb22007129401a15917
20+
with:
21+
REMOTE: '[email protected]:ffflorian/node-packages.git'
22+
REMOTE_NAME: 'gitlab-mirror'
23+
GIT_SSH_KNOWN_HOSTS: 'gitlab.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAfuCHKVTjquxvt6CM6tdG4SLp1Btn/nOeHHE5UOzRdf'
24+
GIT_SSH_PRIVATE_KEY: ${{ secrets.GITLAB_SECRET }}
25+
26+
- name: Mirror to Codeberg
27+
uses: cynicsketch/mirror-action@b1e3c960aead673763e5ccb22007129401a15917
28+
with:
29+
REMOTE: '[email protected]:ffflorian/node-packages.git'
30+
REMOTE_NAME: 'codeberg-mirror'
31+
GIT_SSH_KNOWN_HOSTS: 'codeberg.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIVIC02vnjFyL+I4RHfvIGNtOgJMe769VTF1VR4EB3ZB'
32+
GIT_SSH_PRIVATE_KEY: ${{ secrets.CODEBERG_SECRET }}

.github/workflows/gitlab_mirror.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)