This commit is contained in:
jon4h
2021-03-26 15:28:00 +01:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
name: 'Workflow Webhook Action'
name: 'Workflow Private Webhook Action'
description: 'A Github workflow action to call a webhook with payload data from the event. Support for JSON or URL encoded endpoints.'
inputs:
webhook_url:

View File

@@ -79,7 +79,7 @@ if [ "$silent" ]; then
-H "X-Hub-Signature: sha1=$WEBHOOK_SIGNATURE" \
-H "X-GitHub-Delivery: $GITHUB_RUN_NUMBER" \
-H "X-GitHub-Event: $GITHUB_EVENT_NAME" \
--data "$WEBHOOK_DATA" $WEBHOOK_ENDPOINT
--data "$WEBHOOK_DATA" $WEBHOOK_ENDPOINT &> /dev/null
else
curl -k -v --fail \
-H "Content-Type: $CONTENT_TYPE" \
@@ -88,4 +88,4 @@ else
-H "X-GitHub-Delivery: $GITHUB_RUN_NUMBER" \
-H "X-GitHub-Event: $GITHUB_EVENT_NAME" \
--data "$WEBHOOK_DATA" $WEBHOOK_ENDPOINT
fi
fi