testing syntax #4
Workflow file for this run
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
name: Upload Dashboards | ||
on: | ||
pull_request: | ||
paths: | ||
- examples/dashboards/app_developer.json | ||
- examples/dashboards/business_user.json | ||
- examples/dashboards/platform_engineer.json | ||
jobs: | ||
upload-dashboards: | ||
name: Upload Dashboards | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- name: | ||
run: | ||
# Push new dashboard changes | ||
# App Developer Dashboard | ||
curl -X POST \ | ||
-F 'files=json=examples/dashboards/app_developer.json' -H 'Content-Type: multipart/form-data' https://${{ secrets.GRAFANA_USERNAME }}:${{ secrets.GRAFANA_PASSWORD }}@grafana.com/api/dashboards/20970/revisions | ||
# Business User Dashboard | ||
curl -X POST \ | ||
-F 'files=json=examples/dashboards/business_user.json' \ | ||
-H 'Content-Type: multipart/form-data' \ | ||
https://${{ secrets.GRAFANA_USERNAME }}:${{ secrets.GRAFANA_PASSWORD }}@grafana.com/api/dashboards/20981/revisions | ||
# Platform Engineer Dashboard | ||
curl -X POST \ | ||
-F 'files=json=examples/dashboards/platform_engineer.json' \ | ||
-H 'Content-Type: multipart/form-data' \ | ||
https://${{ secrets.GRAFANA_USERNAME }}:${{ secrets.GRAFANA_PASSWORD }}@grafana.com/api/dashboards/20982/revisions |