Skip to content

sync with forked repo #32

sync with forked repo

sync with forked repo #32

Workflow file for this run

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