Skip to content

Mirror repo to other sites #197

Mirror repo to other sites

Mirror repo to other sites #197

# 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: "git@codeberg.org: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: "git@gitlab.com:TheLovinator/discord-twitter-webhooks.git"
ssh_private_key: ${{ secrets.GITLAB_SSH }}