Skip to content

Commit

Permalink
Create sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathon2nd committed Apr 24, 2024
1 parent b03335e commit 8846327
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Sync to Upstream

on:
schedule:
- cron: '0 1 * * *'

workflow_dispatch: # click the button on Github repo!

jobs:
sync_with_upstream:
runs-on: ubuntu-latest
name: Sync HEAD with upstream latest

steps:
- name: Checkout HEAD
uses: actions/checkout@v2
with:
ref: master

- name: Upstream Sync
uses: aormsby/[email protected]
id: sync
with:
target_repo_token: ${{ secrets.GITHUB_TOKEN }}
upstream_sync_repo: zalando/spilo
upstream_sync_branch: master
target_sync_branch: master

- name: Fetch All Tags from Upstream
run: |
git fetch upstream --tags

0 comments on commit 8846327

Please sign in to comment.