forked from ThePalaceProject/library-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 847 Bytes
/
sync.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
38
39
name: Sync branch with NYPL
on:
schedule:
- cron: '0 7 * * *'
workflow_dispatch:
jobs:
sync_with_nypl:
runs-on: ubuntu-latest
env:
UPSTREAM_ORG: NYPL-Simplified
UPSTREAM_REPO: library_registry
UPSTREAM_BRANCH: develop
ORIGIN_BRANCH: nypl/develop
steps:
- name: Checkout repo to sync
uses: actions/checkout@v4
with:
path: code
- name: Checkout CI scripts
uses: actions/checkout@v4
with:
repository: 'ThePalaceProject/ci-scripts'
path: ci
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install Python requirements
run: pip install -r ci/sync-requirements.txt
- name: Sync branch with upstream
run: python ci/sync.py code