Skip to content

Commit

Permalink
Add HTTP response code to curl command
Browse files Browse the repository at this point in the history
  • Loading branch information
yoland68 committed Jun 13, 2024
1 parent 9858004 commit 866b7fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ runs:
echo "$payload"
response_code=$(curl -o "${{ github.workspace }}/application.log" \
-s -w "%{http_code}" \
-X POST "${{inputs.api_endpoint}}" \
-H "Content-Type: application/json" \
-d "$payload")
Expand Down

0 comments on commit 866b7fb

Please sign in to comment.