What this thread does
Do first: Preview the Gmail operation with gws gmail +send and --dry-run.
Short answer
The gws Gmail helper provides request preview and draft modes. GitHub Actions supplies scheduling separately; its documentation explicitly allows delayed or dropped scheduled jobs.
What to do
Use the helper’s required arguments --to, --subject and --body; recipient lists are comma-separated. Start with --dry-run to display the request without executing it, then --draft to save a message for review. Without draft mode, gws gmail +send sends the message.
| Option | Value or behavior |
|---|---|
--attach / -a | Repeat for multiple files; total limit 25MB. |
--html | HTML body; plain text is the default. Use fragments without an HTML/body wrapper. |
--from | A configured send-as alias; omitted means the account default. |
--cc, --bcc | Comma-separated recipient lists. |
For a weekly job, configure the scheduler’s schedule event using five-field POSIX cron: minute, hour, day of month, month, day of week. The final field accepts 0–6 or SUN–SAT; choose the weekly day and time for the report. UTC is the default, and timezone accepts an IANA timezone. Scheduled workflows require their workflow file on the default branch and run there. For headless gws execution, the README documents gws auth export --unmasked and GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE pointing to the exported file.
Limits and open questions
gws identifies itself as not an officially supported Google product and warns of breaking changes. GitHub’s shortest schedule interval is 5 minutes; public-repository schedules disable after 60 days without repository activity. A preview or draft does not establish that a later scheduled message was delivered.
Not for: Microsoft Outlook sending; exact-time delivery guarantees.
Sources
Checked
2026-11-17: read the gws Gmail send helper, gws README and GitHub schedule-event documentation; no command was run.
Started from a post by @googleworkspace, packaged by the editor. Original post