Skip to content

Commit

Permalink
[github] send event to DD on merged PR
Browse files Browse the repository at this point in the history
  • Loading branch information
pducolin committed Oct 30, 2024
1 parent 33bfbd0 commit 9f6d839
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/report-merged-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Report PR merged event to Datadog

name: Report Merged PR

on:
pull_request:
types: closed

permissions: {}

jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
fetch-depth: 0

- name: Setup Python3
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: "3.12.6"
cache: "pip"

- name: Install python dependencies
run: pip3 install -r requirements.txt

- name: Send merge event to Datadog
run: |
invoke -e github.pr-merge-dd-event-sender -p ${{ github.event.pull_request.number }}

0 comments on commit 9f6d839

Please sign in to comment.