|
|
|
@ -2,13 +2,14 @@ name: Upstream Sync
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
schedule:
|
|
|
|
|
- cron: '0 */12 * * *' # every 12 hours
|
|
|
|
|
workflow_dispatch: # on button click
|
|
|
|
|
- cron: "0 */6 * * *" # every 6 hours
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
sync_latest_from_upstream:
|
|
|
|
|
name: Sync latest commits from upstream repo
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
if: ${{ github.event.repository.fork }}
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
# Step 1: run a standard checkout action, provided by github
|
|
|
|
|