-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (35 loc) · 1.09 KB
/
mirror.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Sync to Mirror
on:
- push
- delete
jobs:
sync-codeberg:
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://codeberg.org/xHyroM/bun-discord-bot.git"
target-username: ${{ secrets.CODEBERG_USERNAME }}
target-token: ${{ secrets.CODEBERG_TOKEN }}
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 }}