forked from hexionas/grafana-annotation-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
44 lines (44 loc) · 1.25 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: grafana-annotation-actions
author: Daniel O'Neill
description: >-
Create Grafana annotations using Github Actions. Update the annotation end
time after an Action is finished.
inputs:
grafanaHost:
description: Grafana Hostname
required: true
grafanaToken:
description: Grafana API token
required: true
grafanaText:
description: Text that will appear on the annotation. Newlines unsupported.
required: true
grafanaDashboardID:
description: >-
Id. of the dashboard to add the annotation on. If not provided, will be
global to all dashboards.
required: false
grafanaPanelID:
description: >-
Id. of the panel to add the annotation on. If not provided, will be global
to all panels.
required: false
grafanaTags:
description: Newline separated list of grafana tags.
required: false
grafanaAnnotationID:
description: >-
Id of previously created annotation to update the "timeEnd" for current
time.
required: false
outputs:
annotation-id:
description: >-
The returned Grafana Annotation ID that can be used to set and end time to
the annotation after an action has completed.
runs:
using: node12
main: dist/index.js
branding:
icon: anchor
color: white