Skip to content

Commit e8aa2fd

Browse files
feat: add grafana annotation action (#107)
* feat: add grafana annotation action Co-authored-by: Lukáš Novotný <[email protected]> --------- Co-authored-by: Lukáš Novotný <[email protected]>
1 parent 0be4eb7 commit e8aa2fd

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.github/workflows/release_marker.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ on:
4040
description: Override the author of event
4141
required: false
4242
type: string
43+
environment:
44+
description: Environment
45+
required: false
46+
type: string
4347

4448
secrets:
4549
newRelicApiKey:
@@ -51,6 +55,9 @@ on:
5155
slackToken:
5256
description: Slack API token
5357
required: false
58+
grafanaApiToken:
59+
description: Slack API token
60+
required: false
5461

5562
jobs:
5663
new_relic:
@@ -64,7 +71,19 @@ jobs:
6471
accountId: ${{ inputs.newRelicAccountId }}
6572
applicationId: ${{ inputs.newRelicApplicationId }}
6673
revision: ${{ inputs.revision }}
67-
74+
75+
grafana:
76+
if: inputs.revision != ''
77+
runs-on: ubuntu-latest
78+
steps:
79+
- name: mark release
80+
uses: frankie567/[email protected]
81+
with:
82+
apiHost: https://grafana.apify.dev
83+
apiToken: ${{ secrets.grafanaApiToken}}
84+
text: ${{ inputs.environment }} - Deployment of ${{ inputs.revision }}
85+
tags: deployment,github
86+
6887
sentry:
6988
if: inputs.sentryOrg != ''
7089
runs-on: ubuntu-latest
@@ -94,7 +113,7 @@ jobs:
94113

95114
slack_notification_failure:
96115
if: failure() && inputs.slackChannelId != ''
97-
needs:
116+
needs:
98117
- new_relic
99118
- sentry
100119
uses: ./.github/workflows/slack.yaml
@@ -105,4 +124,4 @@ jobs:
105124
actorOverride: ${{ inputs.actorOverride }}
106125
jobStatus: failure
107126
secrets:
108-
slackToken: ${{ secrets.slackToken }}
127+
slackToken: ${{ secrets.slackToken }}

0 commit comments

Comments
 (0)