File tree 2 files changed +25
-25
lines changed 2 files changed +25
-25
lines changed Original file line number Diff line number Diff line change 1
- # name: release-publish-grafana
2
- #
3
- # on:
4
- # push:
5
- # branches:
6
- # - main
7
- # paths:
8
- # - 'charts/cluster/grafana-dashboard.json'
9
- #
10
- # jobs:
11
- # release:
12
- # runs-on: ubuntu-22.04
13
- # steps:
14
- # - name: Checkout
15
- # uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
16
- # with:
17
- # fetch-depth: 0 # important for fetching all history to run comparison against
18
- #
19
- # - name: Push dashboard to Grafana.com
20
- # env:
21
- # DASHBOARD_ID: 20417
22
- # GRAFANA_COM_TOKEN: ${{secrets.GRAFANA_COM_TOKEN}}
23
- # run: |
24
- # cat charts/cluster/grafana-dashboard.json | curl -X PATCH -H "Content-Type: application/json" -H "Authorization: Bearer $GRAFANA_COM_TOKEN" --data-binary @- https://grafana.com/api/dashboards/db
1
+ name : release-publish-grafana
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ paths :
8
+ - ' charts/cluster/grafana-dashboard.json'
9
+
10
+ jobs :
11
+ release :
12
+ runs-on : ubuntu-22.04
13
+ steps :
14
+ - name : Checkout
15
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
16
+ with :
17
+ fetch-depth : 0 # important for fetching all history to run comparison against
18
+
19
+ - name : Push dashboard to Grafana.com
20
+ env :
21
+ DASHBOARD_ID : 20417
22
+ GRAFANA_COM_TOKEN : ${{secrets.GRAFANA_COM_TOKEN}}
23
+ run : |
24
+ cat charts/cluster/grafana-dashboard.json | curl -X PATCH -H "Content-Type: application/json" -H "Authorization: Bearer $GRAFANA_COM_TOKEN" --data-binary @- https://grafana.com/api/dashboards/db
Original file line number Diff line number Diff line change 71
71
# would be preserved, causing a non-zero exit. Set nullglob to fix this
72
72
run : |
73
73
shopt -s nullglob
74
- for pkg in .cr-release-packages/*; do
74
+ for pkg in .cr-release-packages/*.tgz ; do
75
75
if [ -z "${pkg:-}" ]; then
76
76
break
77
77
fi
You can’t perform that action at this time.
0 commit comments