forked from rr-/szurubooru
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 823 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
name: Sync Fork
on:
schedule:
- cron: '0 2 * * *'
workflow_dispatch:
jobs:
sync_with_upstream:
runs-on: ubuntu-latest
name: Sync master with latest master of upstream
steps:
- name: Checkout master
uses: actions/checkout@v2
with:
ref: master
- name: Pull (Fast-Forward) upstream changes
id: sync
uses: aormsby/Fork-Sync-With-Upstream-action@v2.0
with:
upstream_repository: rr-/szurubooru
upstream_branch: master
target_branch: master
git_log_format_args: --graph --pretty=oneline
git_pull_args: --ff-only
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Check for new commits
if: steps.sync.outputs.has_new_commits
run: echo "There were new commits."