sync with forked repo #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |