-
Notifications
You must be signed in to change notification settings - Fork 3.2k
42 lines (40 loc) · 1.32 KB
/
wpt_fyi_notify.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
37
38
39
40
41
42
on:
workflow_call:
inputs:
artifact-name:
required: true
type: string
jobs:
wpt-fyi-notify:
name: "Notify wpt.fyi"
runs-on:
- ubuntu-22.04
steps:
- name: "wpt.fyi"
uses: fjogeleit/http-request-action@v1
with:
url: 'https://wpt.fyi/api/checks/github-actions/'
method: 'POST'
contentType: 'application/x-www-form-urlencoded'
data: |
${{ format(
'{{"run_id": {0}, "owner": {1}, "repo": {2}, "artifact_name": {3}}}',
toJSON(github.run_id),
toJSON(github.repository_owner),
toJSON(github.event.repository.name),
toJSON(inputs.artifact-name)
) }}
- name: "staging.wpt.fyi"
uses: fjogeleit/http-request-action@v1
with:
url: 'https://staging.wpt.fyi/api/checks/github-actions/'
method: 'POST'
contentType: 'application/x-www-form-urlencoded'
data: |
${{ format(
'{{"run_id": {0}, "owner": {1}, "repo": {2}, "artifact_name": {3}}}',
toJSON(github.run_id),
toJSON(github.repository_owner),
toJSON(github.event.repository.name),
toJSON(inputs.artifact-name)
) }}