File tree Expand file tree Collapse file tree 3 files changed +20
-4
lines changed
Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 2323 WEBHOOK_URL="${{ secrets.WEBHOOK_URL }}"
2424 WEBHOOK_SECRET="${{ secrets.WEBHOOK_SECRET }}"
2525
26+ # Validate secrets are configured
27+ if [ -z "$WEBHOOK_URL" ]; then
28+ echo "Error: WEBHOOK_URL secret is not configured for $ENVIRONMENT environment"
29+ echo "Please configure it in: Repository Settings → Environments → $ENVIRONMENT → Secrets"
30+ exit 1
31+ fi
32+
33+ if [ -z "$WEBHOOK_SECRET" ]; then
34+ echo "Error: WEBHOOK_SECRET secret is not configured for $ENVIRONMENT environment"
35+ echo "Please configure it in: Repository Settings → Environments → $ENVIRONMENT → Secrets"
36+ exit 1
37+ fi
38+
39+ echo "Triggering deployment webhook for $ENVIRONMENT..."
40+ echo "Webhook URL: $WEBHOOK_URL"
41+
2642 # Create payload
2743 PAYLOAD=$(cat <<EOF
2844 {
4157 -H "X-GitHub-Event: push" \
4258 -H "X-Webhook-Secret: $WEBHOOK_SECRET" \
4359 -d "$PAYLOAD" \
44- --fail --show-error
60+ --fail --show-error \
61+ -w "\nHTTP Status: %{http_code}\n"
4562
46- echo "Deployment webhook triggered for $ENVIRONMENT"
63+ echo "Deployment webhook triggered successfully for $ENVIRONMENT"
Original file line number Diff line number Diff line change 7777 "vitest" : " ^3.2.4" ,
7878 "vue-eslint-parser" : " ^10.1.3"
7979 },
80- "overrides" : {
80+ "overrides" : {
8181 "inflight" : " npm:@isaacs/inflight@^1.0.6" ,
8282 "glob" : " ^10.5.0" ,
8383 "rimraf" : " ^5.0.0" ,
8484 "lodash.isequal" : " npm:lodash@^4.17.21" ,
8585 "fstream" : " ^2.0.1" ,
86- "keygrip" : " ^1.1.1" ,
8786 "@oxc-parser/wasm" : " ^0.1.1"
8887 }
8988}
File renamed without changes.
You can’t perform that action at this time.
0 commit comments