Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow to sync dashboard crds automatically #205

Merged
merged 2 commits into from
Apr 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/sync_dashboard_crds.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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:
workflow_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 ${{ github.workspace }}/config/crd/dashboard-crds
svn export --force https://github.com/opendatahub-io/odh-dashboard/branches/main/manifests/crd .
rm kustomization.yaml
- 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.