forgejo-deb/.action-forgejo-mirror.sh
crystal 6adb447669
Some checks failed
/ mirror (push) Has started running
/ build-forgejo-deb (push) Has been cancelled
/ installtest-bookworm-sqlite (push) Has been cancelled
/ installtest-bullseye-sqlite (push) Has been cancelled
/ installtest-buster-sqlite (push) Has been cancelled
/ installtest-bookworm-user (push) Has been cancelled
/ testsuite-repo-upgrade-sqlite (push) Has been cancelled
/ installtest-buster-bin (push) Has been cancelled
/ publish-release-repo (push) Has been cancelled
[squash] mirror to code.forgejo.org
2024-04-27 23:42:48 -06:00

12 lines
394 B
Bash
Executable file

#!/usr/bin/env bash
if [ "$GITHUB_REPOSITORY_OWNER" = "crystal" ] ; then
echo "crystal_pr: skipping mirror!"
exit 0
fi
git fetch --tags
git remote add action-forgejo-mirror https://forgejo-deb:$FORGEJO_KEY@$FORGEJO_DEST/$GITHUB_REPOSITORY
git push action-forgejo-mirror --all
git push action-forgejo-mirror --tags "refs/remotes/origin/*:refs/heads/*"
git remote remove action-forgejo-mirror