Skip to content

can't do timeout problem, need to change deploy.sh when the webhook u… #23

can't do timeout problem, need to change deploy.sh when the webhook u…

can't do timeout problem, need to change deploy.sh when the webhook u… #23

Workflow file for this run

name: Deploy and Notify
on:
push:
branches:
- dev
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Send Deployment Webhook
id: deploy
env:
WEBHOOK_SECRET: ${{ secrets.WEBHOOK_SECRET }}
run: |
PAYLOAD='{}'
SIGNATURE=$(echo -n "$PAYLOAD" | openssl dgst -sha256 -hmac "$WEBHOOK_SECRET" | awk '{print $2}')
RESPONSE=$(curl -s --max-time 600 -X POST \
-H "X-Hub-Signature-256: sha256=$SIGNATURE" \
-H "Content-Type: application/json" \
-d "$PAYLOAD" \
https://webhook.otl.dev.sparcs.org/server-webhook)
echo "response=$RESPONSE" >> $GITHUB_ENV