From 5a00c2befc9407df504ec4f6afc7c21c5de34456 Mon Sep 17 00:00:00 2001 From: mroman Date: Wed, 8 Mar 2023 10:20:26 +0100 Subject: [PATCH] Add dashboard sync workflow --- .github/workflows/sync_dashboard_crds.yaml | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/sync_dashboard_crds.yaml diff --git a/.github/workflows/sync_dashboard_crds.yaml b/.github/workflows/sync_dashboard_crds.yaml new file mode 100644 index 00000000000..340d6f5e5a0 --- /dev/null +++ b/.github/workflows/sync_dashboard_crds.yaml @@ -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.