Skip to content

Upstream Sync

Upstream Sync #17

Workflow file for this run

name: 'Upstream Sync'
on:
schedule:
# Cron job will run once a day at midnight
- cron: '0 0 * * *'
workflow_dispatch: # click the button on Github repo!
inputs:
sync_test_mode: # Adds a boolean option that appears during manual workflow run for easy test mode config
description: 'Fork Sync Test Mode'
type: boolean
default: false
jobs:
sync_latest_from_upstream:
runs-on: ubuntu-latest
name: Sync latest commits from upstream repo
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: main
token: ${{ secrets.GITHUB_TOKEN }}
- name: Sync upstream changes
id: sync
uses: aormsby/[email protected]
with:
target_sync_branch: main
target_repo_token: ${{ secrets.GITHUB_TOKEN }}
upstream_sync_branch: main
upstream_sync_repo: aehrc/smart-forms