Mirror main to Codeberg and Github
+31
.tangled/workflows/mirror.yaml
+31
.tangled/workflows/mirror.yaml
···
1
+
when:
2
+
- event: [ "push", "manual" ]
3
+
branch: [ "main" ]
4
+
5
+
dependencies:
6
+
nixpkgs:
7
+
- git
8
+
- openssh
9
+
10
+
engine: "nixery"
11
+
12
+
clone:
13
+
depth: 1
14
+
15
+
steps:
16
+
- name: add codeberg remote
17
+
command: |
18
+
git remote add github git@github.com:michaelBelsanti/nixconfig.git
19
+
- name: add github remote
20
+
command: |
21
+
git remote add github git@github.com:michaelBelsanti/nixconfig.git
22
+
- name: push to codeberg
23
+
environment:
24
+
GIT_SSH_COMMAND="ssh -i <(echo \"$GITHUB_REPO_KEY\")"
25
+
command: |
26
+
git push codeberg main
27
+
- name: push to githuub
28
+
environment:
29
+
GIT_SSH_COMMAND="ssh -i <(echo \"$CODEBERG_REPO_KEY\")"
30
+
command: |
31
+
git push github main
History
3 rounds
0 comments
quasigod.xyz
submitted
#2
1 commit
expand
collapse
create mirror action
expand 0 comments
pull request successfully merged
quasigod.xyz
submitted
#1
1 commit
expand
collapse
create mirror action
expand 0 comments
quasigod.xyz
submitted
#0
1 commit
expand
collapse
create mirror action