Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 58ccce0d71 | |||
| e862a75fd0 | |||
| 70fc51ed01 |
@@ -39,3 +39,20 @@ jobs:
|
|||||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
--data @-
|
--data @-
|
||||||
|
|
||||||
|
- name: Trigger Komodo build
|
||||||
|
env:
|
||||||
|
KOMODO_WEBHOOK_URL: https://komodo.urania.dev/listener/github/build/urania_builder_nadir
|
||||||
|
KOMODO_WEBHOOK_SECRET: ${{ secrets.KOMODO_WEBHOOK_SECRET }}
|
||||||
|
run: |
|
||||||
|
# Komodo's GitHub listener requires `ref` + a matching HMAC signature.
|
||||||
|
BODY=$(jq -nc --arg sha "$GITHUB_SHA" \
|
||||||
|
'{ref:"refs/heads/main", after:$sha,
|
||||||
|
repository:{full_name:"${{ github.repository }}",
|
||||||
|
clone_url:"${{ github.server_url }}/${{ github.repository }}.git"}}')
|
||||||
|
SIG=$(printf '%s' "$BODY" | openssl dgst -sha256 -hmac "$KOMODO_WEBHOOK_SECRET" -hex | awk '{print $NF}')
|
||||||
|
curl -fsSL -X POST "$KOMODO_WEBHOOK_URL" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-H "X-GitHub-Event: push" \
|
||||||
|
-H "X-Hub-Signature-256: sha256=$SIG" \
|
||||||
|
-d "$BODY"
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "clean",
|
"name": "clean",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.6.2",
|
"version": "0.6.4",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev:types": "bun run type:generate && bun --bun vite dev --host",
|
"dev:types": "bun run type:generate && bun --bun vite dev --host",
|
||||||
|
|||||||
Reference in New Issue
Block a user