Skip to content

Commit d4c7a64

Browse files
authored
chore: add grafana annotation workflow (#175)
1 parent e523dd4 commit d4c7a64

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
uses: hexionas/[email protected]
42+
with:
43+
grafanaHost: "https://grafana.apify.dev"
44+
grafanaToken: ${{ secrets.grafanaApiToken }}
45+
grafanaText: ${{ inputs.grafanaAnnotationText }}
46+
grafanaTags: ${{ inputs.grafanaAnnotationTags }}
47+
grafanaAnnotationID: ${{ inputs.grafanaAnnotationId }}

0 commit comments

Comments
 (0)