mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
CI: Call benchmarks webhook with curl instead of a dedicated action
The workflow-webhook action that was being used didn't work on macOS or machines without Docker, so let's create the payload ourselves, sign it and send it over using plain old `curl`.
This commit is contained in:
parent
458c96727c
commit
4600f9a5b0
Notes:
github-actions[bot]
2025-04-14 12:17:57 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/4600f9a5b0c Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4350
1 changed files with 13 additions and 4 deletions
17
.github/workflows/js-benchmarks.yml
vendored
17
.github/workflows/js-benchmarks.yml
vendored
|
@ -62,7 +62,16 @@ jobs:
|
|||
retention-days: 90
|
||||
|
||||
- name: 'Call webhook'
|
||||
uses: distributhor/workflow-webhook@v3
|
||||
with:
|
||||
webhook_url: ${{ secrets.JS_BENCHMARKS_WEBHOOK_URL }}
|
||||
webhook_secret: ${{ secrets.JS_BENCHMARKS_WEBHOOK_SECRET }}
|
||||
shell: bash
|
||||
run: |
|
||||
echo -n '{ \
|
||||
"commit": "${{ github.sha }}", \
|
||||
}' > request.json
|
||||
curl \
|
||||
--fail \
|
||||
--silent \
|
||||
--show-error \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header "X-Hub-Signature-256: sha256=$(openssl dgst -sha256 -hmac '${{ secrets.JS_BENCHMARKS_WEBHOOK_SECRET }}' request.json)" \
|
||||
--data-binary '@request.json' \
|
||||
'${{ secrets.JS_BENCHMARKS_WEBHOOK_URL }}'
|
||||
|
|
Loading…
Add table
Reference in a new issue