forked from barbarer/py4e-int
-
Notifications
You must be signed in to change notification settings - Fork 16
34 lines (27 loc) · 772 Bytes
/
main.yml
File metadata and controls
34 lines (27 loc) · 772 Bytes
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
on:
schedule:
- cron: '0 7 * * *'
workflow_dispatch:
jobs:
sync_with_upstream:
runs-on: ubuntu-latest
name: Sync main with upstream latest
steps:
- name: Checkout main
uses: actions/checkout@v2
with:
ref: master
fetch-depth: 0
- name: Pull (Fast-Forward) upstream changes
id: sync
uses: aormsby/Fork-Sync-With-Upstream-action@v2.3
with:
upstream_repository: barbarer/py4e-int
upstream_branch: master
target_branch: master
- name: Check for new commits
if: steps.sync.outputs.has_new_commits
run: echo "There were new commits."
# Step 4: Print a helpful timestamp for your records (not required, just nice)
- name: Timestamp
run: date