wpt_fyi_notify.yml (1410B)
1 on: 2 workflow_call: 3 inputs: 4 artifact-name: 5 required: true 6 type: string 7 8 jobs: 9 wpt-fyi-notify: 10 name: "Notify wpt.fyi" 11 runs-on: ubuntu-24.04 12 steps: 13 - name: "wpt.fyi" 14 if: ${{ !cancelled() }} 15 uses: fjogeleit/http-request-action@v1 16 with: 17 url: 'https://wpt.fyi/api/checks/github-actions/' 18 method: 'POST' 19 contentType: 'application/x-www-form-urlencoded' 20 data: | 21 ${{ format( 22 '{{"run_id": {0}, "owner": {1}, "repo": {2}, "artifact_name": {3}}}', 23 toJSON(github.run_id), 24 toJSON(github.repository_owner), 25 toJSON(github.event.repository.name), 26 toJSON(inputs.artifact-name) 27 ) }} 28 29 - name: "staging.wpt.fyi" 30 if: ${{ !cancelled() }} 31 uses: fjogeleit/http-request-action@v1 32 with: 33 url: 'https://staging.wpt.fyi/api/checks/github-actions/' 34 method: 'POST' 35 contentType: 'application/x-www-form-urlencoded' 36 data: | 37 ${{ format( 38 '{{"run_id": {0}, "owner": {1}, "repo": {2}, "artifact_name": {3}}}', 39 toJSON(github.run_id), 40 toJSON(github.repository_owner), 41 toJSON(github.event.repository.name), 42 toJSON(inputs.artifact-name) 43 ) }}