Sync branch with NYPL #146
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: registry_admin | |
UPSTREAM_BRANCH: master | |
ORIGIN_BRANCH: nypl/master | |
steps: | |
- name: Checkout repo to sync | |
uses: actions/checkout@v3 | |
with: | |
path: code | |
- name: Checkout CI scripts | |
uses: actions/checkout@v3 | |
with: | |
repository: 'ThePalaceProject/ci-scripts' | |
path: ci | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
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 |