Mirror repo to other sites #223
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mirror this GitHub repository to Codeberg and GitLab | |
# Uses https://github.com/pixta-dev/repository-mirroring-action | |
name: Mirror repo to other sites | |
on: | |
push: | |
branches: ["master"] | |
workflow_dispatch: | |
schedule: | |
- cron: "0 5 * * 6" | |
jobs: | |
codeberg: | |
name: Mirror to Codeberg | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: pixta-dev/repository-mirroring-action@v1 | |
with: | |
target_repo_url: "[email protected]:TheLovinator/discord-twitter-webhooks.git" | |
ssh_private_key: ${{ secrets.CODEBERG_SSH }} | |
gitlab: | |
name: Mirror to GitLab | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: pixta-dev/repository-mirroring-action@v1 | |
with: | |
target_repo_url: "[email protected]:TheLovinator/discord-twitter-webhooks.git" | |
ssh_private_key: ${{ secrets.GITLAB_SSH }} |