[CI] push forgejo branches to the specified destination (squash) verbose
(cherry picked from commit 848685d68d
)
This commit is contained in:
parent
cd26466622
commit
e8021f281f
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,8 @@ jobs:
|
||||||
git fetch origin refs/heads/forgejo:refs/mirror/forgejo
|
git fetch origin refs/heads/forgejo:refs/mirror/forgejo
|
||||||
git ls-remote origin refs/heads/v*/forgejo | while read sha full_ref ; do
|
git ls-remote origin refs/heads/v*/forgejo | while read sha full_ref ; do
|
||||||
ref=${full_ref#refs/heads/}
|
ref=${full_ref#refs/heads/}
|
||||||
|
echo git fetch origin $full_ref:refs/mirror/$ref
|
||||||
git fetch origin $full_ref:refs/mirror/$ref
|
git fetch origin $full_ref:refs/mirror/$ref
|
||||||
done
|
done
|
||||||
|
echo git push --force https://${{ vars.MIRROR_DESTINATION }} refs/mirror/*:refs/heads/*
|
||||||
git push --force https://any:${{ secrets.MIRROR_TOKEN }}@${{ vars.MIRROR_DESTINATION }} refs/mirror/*:refs/heads/*
|
git push --force https://any:${{ secrets.MIRROR_TOKEN }}@${{ vars.MIRROR_DESTINATION }} refs/mirror/*:refs/heads/*
|
||||||
|
|
Loading…
Reference in a new issue