From 92693c675fe638738bef1a899e2ca79612731f67 Mon Sep 17 00:00:00 2001 From: ArthurSens Date: Thu, 17 Nov 2022 18:25:28 +0000 Subject: [PATCH] Add GH Action to sync dashboards Signed-off-by: ArthurSens --- .github/sync.yml | 13 +++++++++++++ .github/workflows/dashboard-sync.yml | 23 +++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/sync.yml create mode 100644 .github/workflows/dashboard-sync.yml diff --git a/.github/sync.yml b/.github/sync.yml new file mode 100644 index 00000000000000..30bba07cfa6c3d --- /dev/null +++ b/.github/sync.yml @@ -0,0 +1,13 @@ +gitpod-io/monitoring-central: + - source: operations/observability/mixins/cross-teams/dashboards/ + dest: charts/grafana/dashboards/general/ + - source: operations/observability/mixins/IDE/dashboards/ + dest: charts/grafana/dashboards/ide/ + - source: operations/observability/mixins/meta/dashboards/ + dest: charts/grafana/dashboards/webapp/ + - source: operations/observability/mixins/platform/dashboards/ + dest: charts/grafana/dashboards/platform/ + - source: operations/observability/mixins/self-hosted/dashboards/ + dest: charts/grafana/dashboards/deployment-operations-experience/ + - source: operations/observability/mixins/workspace/dashboards/ + dest: charts/grafana/dashboards/workspace/ diff --git a/.github/workflows/dashboard-sync.yml b/.github/workflows/dashboard-sync.yml new file mode 100644 index 00000000000000..5be9bf8610f0d2 --- /dev/null +++ b/.github/workflows/dashboard-sync.yml @@ -0,0 +1,23 @@ +name: Dashboard sync +on: + push: + paths: + - operations/observability/mixins/cross-teams/dashboards/* + - operations/observability/mixins/IDE/dashboards/* + - operations/observability/mixins/meta/dashboards/* + - operations/observability/mixins/platform/dashboards/* + - operations/observability/mixins/self-hosted/dashboards/* + - operations/observability/mixins/workspace/dashboards/* + branches: + - main + workflow_dispatch: +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@master + - name: Run GitHub File Sync + uses: BetaHuhn/repo-file-sync-action@v1 + with: + GH_PAT: ${{ secrets.ROBOQUAT_FSYNC_TOKEN }}