Skip to content

Commit

Permalink
actions: send release event to datadog (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
WillRoque committed Jun 26, 2023
1 parent 7ee4e4f commit a92f887
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/datadog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Datadog Event

on:
release:
types: [published]

jobs:
send-release-event:
runs-on: ubuntu-latest
steps:
- name: Send Release Event
run: |
curl -sX POST "https://api.datadoghq.eu/api/v1/events" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${{ secrets.DATADOG_API_KEY }}" \
--data-raw '{
"title": "Jazzer.js has been released",
"text": "%%% \nJazzer.js has been released with version **${{ github.event.release.tag_name }}**\n %%%",
"tags": [
"repo:${{ github.repository }}",
"project:Jazzer.js",
"version:${{ github.event.release.tag_name }}"
]
}'

0 comments on commit a92f887

Please sign in to comment.