forked from BimberLab/DiscvrLabKeyModules
-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (31 loc) · 1.17 KB
/
sync-repos.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
# Designed to keep develop branch as a perfect copy of LabKey fork
name: Sync Repos
on:
workflow_dispatch:
schedule:
- cron: "10 */3 * * *"
jobs:
sync-release-branches:
if: github.repository == 'BimberLab/DiscvrLabKeyModules'
runs-on: ubuntu-latest
steps:
- name: "Sync Release Branches"
uses: bimberlabinternal/DevOps/githubActions/branch-create@master
with:
source_repo: "labkey/DiscvrLabKeyModules"
source_branch_prefix: "release"
destination_repo: "BimberLab/DiscvrLabKeyModules"
destination_branch_prefix: "discvr-"
# NOTE: permissions are limited on the default secrets.GITHUB_TOKEN, including updating workflows, so use a personal access token
github_token: ${{ secrets.PAT }}
sync-develop:
if: github.repository == 'BimberLab/DiscvrLabKeyModules'
runs-on: ubuntu-latest
steps:
- name: "Sync Develop Branch"
uses: bimberlabinternal/DevOps/githubActions/git-sync@master
with:
source_repo: "labkey/DiscvrLabKeyModules"
source_branch: "develop"
destination_branch: "develop"
github_token: ${{ secrets.PAT }}