Skip to content

Commit

Permalink
Add dashboard sync workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
maroroman committed Mar 8, 2023
1 parent ebec2bf commit d45c445
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/sync_dashboard_crds.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Opens a PR in the opendatahub-operator repo when crds are updated in the dashboard repo
name: Sync Dashboard CRDs

# Await dispatch from dashboard repo that crds have been modified
on:
repository_dispatch

jobs:
dashboard-sync:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Gather files
shell: bash
run: |
cd config/crd/dashboard-crds
svn checkout --force https://github.com/opendatahub-io/odh-dashboard/trunk/manifests/crd
svn revert -R ./crd
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4.2.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: dashboard-sync
commit-message: Automated Change
title: Sync operator crds with dashboard crds
body: This is an automated pull request to sync the operator crds with dashboard crds.





0 comments on commit d45c445

Please sign in to comment.