put the commit hash in the webhook
This commit is contained in:
parent
226981f433
commit
369dda5e33
@ -48,5 +48,16 @@ jobs:
|
||||
run: |
|
||||
curl -X POST \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"event":"deployment"}' \
|
||||
"${{ secrets.WEBHOOK_URL }}"
|
||||
-H "x-gitea-event: Push Hook" \
|
||||
-d "{
|
||||
\"ref\": \"refs/heads/main\",
|
||||
\"after\": \"${GITHUB_SHA}\",
|
||||
\"commits\": [
|
||||
{
|
||||
\"id\": \"${GITHUB_SHA}\",
|
||||
\"message\": \"Deployment from Gitea Actions\",
|
||||
\"author\": { \"name\": \"${GITHUB_ACTOR}\" }
|
||||
}
|
||||
]
|
||||
}" \
|
||||
"${{ secrets.WEBHOOK_URL }}"
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "futureporn-our",
|
||||
"private": true,
|
||||
"version": "2.8.10",
|
||||
"version": "2.8.11",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "concurrently npm:dev:serve npm:dev:build:server npm:dev:build:client npm:dev:worker npm:dev:compose npm:dev:sftp npm:dev:qbittorrent npm:dev:tailscale",
|
||||
|
Loading…
x
Reference in New Issue
Block a user