Mirror main to Codeberg and Github
+26
.tangled/workflows/mirror.yaml
+26
.tangled/workflows/mirror.yaml
···
1
+
when:
2
+
- event: ["push", "manual" ]
3
+
branch: ["main"]
4
+
5
+
dependencies:
6
+
nixpkgs:
7
+
- git
8
+
- openssh
9
+
10
+
steps:
11
+
- name: add codeberg remote
12
+
command: |
13
+
git remote add github git@github.com:michaelBelsanti/nixconfig.git
14
+
- name: add github remote
15
+
command: |
16
+
git remote add github git@github.com:michaelBelsanti/nixconfig.git
17
+
- name: push to codeberg
18
+
environment:
19
+
GIT_SSH_COMMAND="ssh -i <(echo \"$GITHUB_REPO_KEY\")"
20
+
command: |
21
+
git push codeberg main
22
+
- name: push to githuub
23
+
environment:
24
+
GIT_SSH_COMMAND="ssh -i <(echo \"$CODEBERG_REPO_KEY\")"
25
+
command: |
26
+
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