-
Notifications
You must be signed in to change notification settings - Fork 1.1k
36 lines (33 loc) · 1.11 KB
/
approved_status.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Send PR Approval Status
on:
pull_request:
branches:
- master
types: ["review_requested", "synchronize", "opened", "reopened"]
pull_request_review:
types:
- submitted
- dismissed
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
send_status:
runs-on: ubuntu-latest
if: >
github.event.pull_request.draft == false &&
!contains(github.event.pull_request.labels.*.name, 'ci/skip') &&
!contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/') &&
contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/')
steps:
- name: Get GitHub App token
id: get_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
private_key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
repository: DataDog/datadog-api-spec
- name: Post PR review status check
uses: DataDog/github-actions/[email protected]
with:
github-token: ${{ steps.get_token.outputs.token }}
repo: datadog-api-spec