From e8aa2fdbc3c22c707ad6cb863c79a0aacb0f7263 Mon Sep 17 00:00:00 2001 From: Lukas M Date: Tue, 5 Mar 2024 20:36:03 +0100 Subject: [PATCH] feat: add grafana annotation action (#107) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add grafana annotation action Co-authored-by: Lukáš Novotný <33942303+dragonraid@users.noreply.github.com> --------- Co-authored-by: Lukáš Novotný <33942303+dragonraid@users.noreply.github.com> --- .github/workflows/release_marker.yaml | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release_marker.yaml b/.github/workflows/release_marker.yaml index b34184c..9c58b29 100644 --- a/.github/workflows/release_marker.yaml +++ b/.github/workflows/release_marker.yaml @@ -40,6 +40,10 @@ on: description: Override the author of event required: false type: string + environment: + description: Environment + required: false + type: string secrets: newRelicApiKey: @@ -51,6 +55,9 @@ on: slackToken: description: Slack API token required: false + grafanaApiToken: + description: Slack API token + required: false jobs: new_relic: @@ -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/grafana-annotation-action@v1.0.2 + 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 @@ -94,7 +113,7 @@ jobs: slack_notification_failure: if: failure() && inputs.slackChannelId != '' - needs: + needs: - new_relic - sentry uses: ./.github/workflows/slack.yaml @@ -105,4 +124,4 @@ jobs: actorOverride: ${{ inputs.actorOverride }} jobStatus: failure secrets: - slackToken: ${{ secrets.slackToken }} \ No newline at end of file + slackToken: ${{ secrets.slackToken }}