Push to Codeberg
This commit is contained in:
6
.github/workflows/mirror-to-codeberg.yml
vendored
6
.github/workflows/mirror-to-codeberg.yml
vendored
@@ -12,6 +12,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up SSH
|
- name: Set up SSH
|
||||||
run: |
|
run: |
|
||||||
@@ -19,10 +21,6 @@ jobs:
|
|||||||
echo "${{ secrets.CODEBERG_SSH_KEY }}" > ~/.ssh/id_ed25519
|
echo "${{ secrets.CODEBERG_SSH_KEY }}" > ~/.ssh/id_ed25519
|
||||||
chmod 600 ~/.ssh/id_ed25519
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
ssh-keyscan codeberg.org >> ~/.ssh/known_hosts
|
ssh-keyscan codeberg.org >> ~/.ssh/known_hosts
|
||||||
ssh -i ~/.ssh/id_ed25519 git@codeberg.org || true
|
|
||||||
|
|
||||||
- name: Show remotes
|
|
||||||
run: git remote -v
|
|
||||||
|
|
||||||
- name: Push to Codeberg
|
- name: Push to Codeberg
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user