forked from kubeflow/spark-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from zendesk/ShikharMathur-Z/EXPSUN-1875/workfl…
…ow_for_syncing_upstream automating upstream sync
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
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
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 |