Skip to content

Commit

Permalink
Improve deployment step in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Flo0807 committed Feb 15, 2024
1 parent 3ded708 commit ecd62f3
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,13 @@ jobs:
steps:
- name: Trigger deployment
run: |
curl -X POST ${{ secrets.WEBHOOK_URL }} \
-H "Content-Type: application/json" \
-H "X-Signature: ${{ secrets.WEBHOOK_SECRET }}" \
-d '{}'
RESPONSE=$(curl -s -o /dev/null -w "%{http_code}" -X POST ${{ secrets.WEBHOOK_URL }} \
-H "Content-Type: application/json" \
-H "X-Signature: ${{ secrets.WEBHOOK_SECRET }}" \
-d '{}')
if [ "$RESPONSE" -ne "200" ]
then
echo "Deployment failed with status ${RESPONSE}"
exit 1
fi

0 comments on commit ecd62f3

Please sign in to comment.