mirror of
https://github.com/ZXCmod/.github.git
synced 2025-04-23 23:03:31 +03:00
added codeberg
This commit is contained in:
parent
ae91f8f11d
commit
20c7e9faf4
12
.github/workflows/sync-with-gitlab.yml
vendored
12
.github/workflows/sync-with-gitlab.yml
vendored
@ -15,7 +15,8 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
repo:
|
repo:
|
||||||
- {github: "https://github.com/ZXCmod/.github.git", bitbucket: "git@bitbucket.org:zxcmod/.github.git" , gitlab: "git@gitlab.com:zxcmod/dot-github.git" }
|
# - {github: "", bitbucket: "", codeberg: "", gitlab: "" }
|
||||||
|
- {github: "https://github.com/ZXCmod/.github.git", bitbucket: "git@bitbucket.org:zxcmod/.github.git", codeberg: "git@codeberg.org:ZXC-mod/.github.git", gitlab: "git@gitlab.com:zxcmod/dot-github.git"}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up SSH key
|
- name: Set up SSH key
|
||||||
@ -25,9 +26,10 @@ jobs:
|
|||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
|
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
|
||||||
chmod 600 ~/.ssh/id_ed25519
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
ssh-keyscan -t rsa,ed25519 bitbucket.org >> ~/.ssh/known_hosts
|
||||||
|
ssh-keyscan -t rsa,ed25519 codeberg.org >> ~/.ssh/known_hosts
|
||||||
ssh-keyscan -t rsa,ed25519 github.com >> ~/.ssh/known_hosts
|
ssh-keyscan -t rsa,ed25519 github.com >> ~/.ssh/known_hosts
|
||||||
ssh-keyscan -t rsa,ed25519 gitlab.com >> ~/.ssh/known_hosts
|
ssh-keyscan -t rsa,ed25519 gitlab.com >> ~/.ssh/known_hosts
|
||||||
ssh-keyscan -t rsa,ed25519 bitbucket.org >> ~/.ssh/known_hosts
|
|
||||||
|
|
||||||
- name: Clone repository as mirror
|
- name: Clone repository as mirror
|
||||||
run: |
|
run: |
|
||||||
@ -39,6 +41,12 @@ jobs:
|
|||||||
git remote set-url origin ${{ matrix.repo.bitbucket }}
|
git remote set-url origin ${{ matrix.repo.bitbucket }}
|
||||||
git push --mirror --force
|
git push --mirror --force
|
||||||
|
|
||||||
|
- name: Push to CodeBerg
|
||||||
|
run: |
|
||||||
|
cd repo-mirror
|
||||||
|
git remote set-url origin ${{ matrix.repo.codeberg }}
|
||||||
|
git push --mirror --force
|
||||||
|
|
||||||
- name: Push to GitLab
|
- name: Push to GitLab
|
||||||
run: |
|
run: |
|
||||||
cd repo-mirror
|
cd repo-mirror
|
||||||
|
Loading…
x
Reference in New Issue
Block a user