Skip to content

Commit

Permalink
chore: add grafana annotation workflow (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmrtvy authored Feb 27, 2025
1 parent e523dd4 commit d4c7a64
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/grafana_annotation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: grafana annotation

on:
workflow_call:
inputs:
environment:
description: Environment
required: false
type: string
grafanaAnnotationTags:
description: Custom annotation tags
required: false
type: string
grafanaAnnotationText:
description: Custom annotation text
required: true
type: string
grafanaAnnotationId:
description: Annotation Id
required: false
type: string

secrets:
grafanaApiToken:
description: Grafana API token
required: true

outputs:
annotation_id:
description: Annotation Id
value: ${{ jobs.grafana.outputs.annotation_id }}

jobs:
grafana:
runs-on: ubuntu-latest
outputs:
annotation_id: ${{ steps.grafana.outputs.annotation-id }}
steps:
- name: add Grafana annotation
id: grafana
uses: hexionas/[email protected]
with:
grafanaHost: "https://grafana.apify.dev"
grafanaToken: ${{ secrets.grafanaApiToken }}
grafanaText: ${{ inputs.grafanaAnnotationText }}
grafanaTags: ${{ inputs.grafanaAnnotationTags }}
grafanaAnnotationID: ${{ inputs.grafanaAnnotationId }}

0 comments on commit d4c7a64

Please sign in to comment.