Skip to content

Commit

Permalink
feat: add grafana annotation action (#107)
Browse files Browse the repository at this point in the history
* feat: add grafana annotation action

Co-authored-by: Lukáš Novotný <[email protected]>

---------

Co-authored-by: Lukáš Novotný <[email protected]>
  • Loading branch information
lukasmrtvy and dragonraid committed Mar 5, 2024
1 parent 0be4eb7 commit e8aa2fd
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/release_marker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ on:
description: Override the author of event
required: false
type: string
environment:
description: Environment
required: false
type: string

secrets:
newRelicApiKey:
Expand All @@ -51,6 +55,9 @@ on:
slackToken:
description: Slack API token
required: false
grafanaApiToken:
description: Slack API token
required: false

jobs:
new_relic:
Expand All @@ -64,7 +71,19 @@ jobs:
accountId: ${{ inputs.newRelicAccountId }}
applicationId: ${{ inputs.newRelicApplicationId }}
revision: ${{ inputs.revision }}


grafana:
if: inputs.revision != ''
runs-on: ubuntu-latest
steps:
- name: mark release
uses: frankie567/[email protected]
with:
apiHost: https://grafana.apify.dev
apiToken: ${{ secrets.grafanaApiToken}}
text: ${{ inputs.environment }} - Deployment of ${{ inputs.revision }}
tags: deployment,github

sentry:
if: inputs.sentryOrg != ''
runs-on: ubuntu-latest
Expand Down Expand Up @@ -94,7 +113,7 @@ jobs:

slack_notification_failure:
if: failure() && inputs.slackChannelId != ''
needs:
needs:
- new_relic
- sentry
uses: ./.github/workflows/slack.yaml
Expand All @@ -105,4 +124,4 @@ jobs:
actorOverride: ${{ inputs.actorOverride }}
jobStatus: failure
secrets:
slackToken: ${{ secrets.slackToken }}
slackToken: ${{ secrets.slackToken }}

0 comments on commit e8aa2fd

Please sign in to comment.