From 88463278da943cfce3b30177e1e8f909f6aedb04 Mon Sep 17 00:00:00 2001 From: Jonathon Beauregard II Date: Wed, 24 Apr 2024 08:29:14 -0700 Subject: [PATCH] Create sync.yml --- .github/workflows/sync.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/sync.yml diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 000000000..b09872cc7 --- /dev/null +++ b/.github/workflows/sync.yml @@ -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/Fork-Sync-With-Upstream-action@v3.4 + 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