forked from kylemanna/docker-openvpn
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.03 KB
/
sync-fork.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
33
34
35
36
37
38
39
40
41
name: sync with forked repo
on:
schedule:
- cron: "50 10 * * 1,3,5"
jobs:
sync_with_upstream:
runs-on: ubuntu-latest
name: Sync master with upstream latest
steps:
- name: Checkout master
uses: actions/checkout@v4
with:
ref: master
- name: Pull upstream changes
id: sync
uses: aormsby/Fork-Sync-With-Upstream-action@v3.4
with:
upstream_repository: kylemanna/docker-openvpn
upstream_branch: master
target_branch: master
git_pull_args: --ff-only
- name: Check for new commits
if: steps.sync.outputs.has-new-commits
run: echo "There were new commits."
# - name: do it old way
# run: |
# git remote add upstream https://github.com/kylemanna/docker-openvpn
# git remote -v
# git fetch upstream
# git checkout master
# git merge upstream/master --allow-unrelated-histories
# #git push origin master
- name: Timestamp
run: date