Skip to content

.github/workflows/mirror.yml #35

.github/workflows/mirror.yml

.github/workflows/mirror.yml #35

Workflow file for this run

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 }}