There was an error while loading. Please reload this page.
1 parent 1ac6d91 commit 7652bbeCopy full SHA for 7652bbe
1 file changed
.github/workflows/notify-on-merge.yml
@@ -18,12 +18,12 @@ jobs:
18
run: |
19
set -euo pipefail
20
if [ -z "${DISPATCH_TOKEN:-}" ] || [ -z "${TARGET_REPO:-}" ]; then
21
- echo "::error::SYNC_DISPATCH_TOKEN and SYNC_TARGET_REPO are required."
22
- exit 1
+ echo "::notice::SYNC_DISPATCH_TOKEN/SYNC_TARGET_REPO not set; skipping downstream notify."
+ exit 0
23
fi
24
PAYLOAD="$(jq -n --arg sha "$COMMIT_SHA" \
25
'{ event_type: "upstream-push", client_payload: { sha: $sha } }')"
26
- curl -fsSL -X POST \
+ curl -fsSL --connect-timeout 10 --max-time 60 -X POST \
27
-H "Accept: application/vnd.github+json" \
28
-H "Authorization: Bearer ${DISPATCH_TOKEN}" \
29
"https://api.github.com/repos/${TARGET_REPO}/dispatches" \
0 commit comments