bun-discord-bot/.github/workflows/mirror.yml

38 lines
1.1 KiB
YAML
Raw Normal View History

2024-07-09 22:59:35 +02:00
name: Sync to Mirror
on:
- push
- delete
jobs:
sync-codeberg:
if: github.repository_owner == 'xHyroM'
runs-on: ubuntu-24.04
2024-07-09 23:08:20 +02:00
continue-on-error: true
2024-07-09 22:59:35 +02:00
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Synchronize code to other Git platforms
uses: wangchucheng/git-repo-sync@v0.1.0
with:
target-url: "https://codeberg.org/xHyroM/bun-discord-bot.git"
target-username: ${{ secrets.CODEBERG_USERNAME }}
target-token: ${{ secrets.CODEBERG_TOKEN }}
2024-07-09 23:08:20 +02:00
sync-gitlab:
if: github.repository_owner == 'xHyroM'
runs-on: ubuntu-24.04
continue-on-error: true
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Synchronize code to other Git platforms
uses: wangchucheng/git-repo-sync@v0.1.0
with:
target-url: "https://gitlab.com/xhyrom/bun-discord-bot.git"
target-username: ${{ secrets.GITLAB_USERNAME }}
target-token: ${{ secrets.GITLAB_TOKEN }}