Discord GitHub Notifications fails for every new stargazer
Summary
The Discord GitHub Notifications workflow is currently failing for new stargazers. I noticed this when starring the repository, and the runs immediately before and after mine failed in the same way for other users.
Evidence
- Run #43299 (
wunala-bot): https://github.com/unclecode/crawl4ai/actions/runs/34734529387 - Run #43300 (
Beverly621): https://github.com/unclecode/crawl4ai/actions/runs/34734586165 - Run #43301 (
haoyun18881-beep): https://github.com/unclecode/crawl4ai/actions/runs/34734744872
In run #43300, the notify-discord job fails at:
Send to Google Apps Script (Stars only)
The check annotation reports:
Process completed with exit code 22.
The workflow uses curl -fSs to POST to secrets.GOOGLE_SCRIPT_ENDPOINT, so exit code 22 indicates that the endpoint returned an HTTP error response. Because this first step fails, Set webhook based on event type and Discord Notification are skipped.
Expected behavior
A temporary failure in the optional stargazer-tracking endpoint should ideally not fail the complete workflow or prevent the Discord notification from running.
Possible resolution
There appear to be two possible directions:
- Fix or redeploy
GOOGLE_SCRIPT_ENDPOINTif the current failure is only a service/configuration problem. - If spreadsheet tracking is intended to be best-effort, handle this step as a warning (for example with
continue-on-error: true) so the Discord notification can still run.
Would the maintainers prefer the second behavior? If so, I would be happy to submit a focused PR targeting develop.
Source: unclecode/crawl4ai