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:
|
codeberg:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
|
@ -31,11 +31,11 @@ jobs:
|
||||||
- name: Verify SSH access
|
- name: Verify SSH access
|
||||||
run: |
|
run: |
|
||||||
ssh -T git@codeberg.org || true
|
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
|
- name: Mirror to Codeberg
|
||||||
run: |
|
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/*).
|
# Remove previously mirrored remote-tracking refs (e.g. refs/remotes/origin/*).
|
||||||
while IFS= read -r ref; do
|
while IFS= read -r ref; do
|
||||||
git push mirror ":${ref}"
|
git push mirror ":${ref}"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue