Skip to content

Commit

Permalink
Merge pull request #2 from zendesk/ShikharMathur-Z/EXPSUN-1875/workfl…
Browse files Browse the repository at this point in the history
…ow_for_syncing_upstream

automating upstream sync
  • Loading branch information
ShikharMathur-Z authored Jul 10, 2024
2 parents 012b52a + e0930bd commit 514787d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/sync-upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Sync spark-operator with upstream

on:
schedule:
- cron: "0 0 * * 6"
workflow_dispatch:

jobs:
main:
name: Sync upstream
runs-on: [self-hosted, zendesk-stable]

steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: zendesk/kubeflow-spark-operator
path: kubeflow-spark-operator

- name: Sync Upstream
run: |
cd kubeflow-spark-operator
git remote | grep upstream || git remote add upstream https://github.com/kubeflow/spark-operator
git fetch upstream
git checkout master
git merge upstream/master
git push origin master

0 comments on commit 514787d

Please sign in to comment.