forgejo-deb/.action-forgejo-mirror.sh

8 lines
303 B
Bash
Raw Normal View History

2024-06-16 01:39:03 +10:00
#!/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