Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
- Loading branch information
1 parent
90100be
commit 5cc0503
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright 2021 Signal Messenger, LLC | ||
# SPDX-License-Identifier: AGPL-3.0-only | ||
|
||
name: On Release | ||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.*' | ||
|
||
jobs: | ||
backport: | ||
name: Create event in datadog | ||
if: ${{ github.repository == 'signalapp/Signal-Desktop-Private' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create event on DataDog | ||
run: | | ||
curl -X POST "https://api.datadoghq.com/api/v1/events" \ | ||
-H "Accept: application/json" \ | ||
-H "Content-Type: application/json" \ | ||
-H "DD-API-KEY: ${DD_API_KEY}" \ | ||
-d @- << EOF | ||
{ | ||
"title": "Desktop Release ${{ github.ref_name }}" | ||
"text": "A new desktop release ${{ github.ref_name }} was just published" | ||
"source_type_name": "git", | ||
"tags": [ | ||
"service:desktop.ci.release", | ||
"env:production", | ||
"version:${{ github.ref_name }}" | ||
] | ||
} | ||
EOF | ||
env: | ||
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }} |