Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-28 20:56:11 +01:00

[CI] push forgejo branches to the specified destination (squash) verbose

This commit is contained in:
Earl Warren 2024-01-15 19:01:28 +00:00
parent ef1ddf0568
commit 848685d68d
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -20,6 +20,8 @@ jobs:
git fetch origin refs/heads/forgejo:refs/mirror/forgejo
git ls-remote origin refs/heads/v*/forgejo | while read sha full_ref ; do
ref=${full_ref#refs/heads/}
echo git fetch origin $full_ref:refs/mirror/$ref
git fetch origin $full_ref:refs/mirror/$ref
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/*