File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : grafana annotation
2+
3+ on :
4+ workflow_call :
5+ inputs :
6+ environment :
7+ description : Environment
8+ required : false
9+ type : string
10+ grafanaAnnotationTags :
11+ description : Custom annotation tags
12+ required : false
13+ type : string
14+ grafanaAnnotationText :
15+ description : Custom annotation text
16+ required : true
17+ type : string
18+ grafanaAnnotationId :
19+ description : Annotation Id
20+ required : false
21+ type : string
22+
23+ secrets :
24+ grafanaApiToken :
25+ description : Grafana API token
26+ required : true
27+
28+ outputs :
29+ annotation_id :
30+ description : Annotation Id
31+ value : ${{ jobs.grafana.outputs.annotation_id }}
32+
33+ jobs :
34+ grafana :
35+ runs-on : ubuntu-latest
36+ outputs :
37+ annotation_id : ${{ steps.grafana.outputs.annotation-id }}
38+ steps :
39+ - name : add Grafana annotation
40+ id : grafana
41+ 42+ with :
43+ grafanaHost : " https://grafana.apify.dev"
44+ grafanaToken : ${{ secrets.grafanaApiToken }}
45+ grafanaText : ${{ inputs.grafanaAnnotationText }}
46+ grafanaTags : ${{ inputs.grafanaAnnotationTags }}
47+ grafanaAnnotationID : ${{ inputs.grafanaAnnotationId }}
You can’t perform that action at this time.
0 commit comments