-
Notifications
You must be signed in to change notification settings - Fork 11
33 lines (32 loc) · 1003 Bytes
/
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
on:
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:
jobs:
repo-sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: sync development branch
uses: repo-sync/github-sync@v2
with:
source_repo: "https://gitlab.com/then-try-this/samplebrain.git"
source_branch: "development"
destination_branch: "development"
github_token: ${{ secrets.PAT }}
- name: sync main branch
uses: repo-sync/github-sync@v2
with:
source_repo: "https://gitlab.com/then-try-this/samplebrain.git"
source_branch: "main"
destination_branch: "main"
github_token: ${{ secrets.PAT }}
- name: sync production branch
uses: repo-sync/github-sync@v2
with:
source_repo: "https://gitlab.com/then-try-this/samplebrain.git"
source_branch: "production"
destination_branch: "production"
github_token: ${{ secrets.PAT }}