Back to Googleworkspace

workflow +file-announce

skills/gws-workflow-file-announce/SKILL.md

0.22.51.2 KB
Original Source

workflow +file-announce

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

Announce a Drive file in a Chat space

Usage

bash
gws workflow +file-announce --file-id <ID> --space <SPACE>

Flags

FlagRequiredDefaultDescription
--file-idDrive file ID to announce
--spaceChat space name (e.g. spaces/SPACE_ID)
--messageCustom announcement message
--formatOutput format: json (default), table, yaml, csv

Examples

bash
gws workflow +file-announce --file-id FILE_ID --space spaces/ABC123
gws workflow +file-announce --file-id FILE_ID --space spaces/ABC123 --message 'Check this out!'

Tips

  • This is a write command — sends a Chat message.
  • Use gws drive +upload first to upload the file, then announce it here.
  • Fetches the file name from Drive to build the announcement.

See Also