forgejo-deb/.action-forgejo-mirror.sh
2024-04-28 08:18:23 -06:00

8 lines
303 B
Bash
Executable file

#!/usr/bin/env bash
git fetch --tags
git remote add action-forgejo-mirror https://action-forgejo-mirror:$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