Fix repository references in Codeberg mirror workflow
This commit is contained in:
parent
df2e4adde1
commit
50f3d32b49
1 changed files with 3 additions and 3 deletions
6
.github/workflows/codeberg_mirror.yml
vendored
6
.github/workflows/codeberg_mirror.yml
vendored
|
|
@ -10,7 +10,7 @@ jobs:
|
|||
codeberg:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
|
@ -31,11 +31,11 @@ jobs:
|
|||
- name: Verify SSH access
|
||||
run: |
|
||||
ssh -T git@codeberg.org || true
|
||||
git ls-remote git@codeberg.org:adrian-altner/www.adrian-altner.com.git > /dev/null
|
||||
git ls-remote git@codeberg.org:adrian-altner/adrian-altner.com.git > /dev/null
|
||||
|
||||
- name: Mirror to Codeberg
|
||||
run: |
|
||||
git remote add mirror git@codeberg.org:adrian-altner/www.adrian-altner.com.git
|
||||
git remote add mirror git@codeberg.org:adrian-altner/adrian-altner.com.git
|
||||
# Remove previously mirrored remote-tracking refs (e.g. refs/remotes/origin/*).
|
||||
while IFS= read -r ref; do
|
||||
git push mirror ":${ref}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue