template-unity-package/.github/workflows/mirror.yml

20 lines
841 B
YAML
Raw Normal View History

2020-08-23 15:58:28 +02:00
name: Mirroring
on: [push, delete]
jobs:
to_bitbucket:
if: # Adding if-statement to prevent this job from running on packages using this template.
# If you want to run this mirror job, just take out the if-field and value below.
github.repository == 'OmiyaGames/template-unity-package'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url: # Enter the SSH URL to mirror the Github repo to.
git@bitbucket.org:OmiyaGames/template-unity-package.git
ssh_private_key: # Add a secret in Github with the name, SSH_PRIVATE_KEY.
# Don't forget to add a deploy (aka public) key in both the original and mirror repositories.
${{ secrets.SSH_PRIVATE_KEY }}