---
id: ssh2-gws-workflow-file-announce
name: "gws-workflow-file-announce"
url: https://skills.yangsir.net/skill/ssh2-gws-workflow-file-announce
author: googleworkspace
domain: ai-productivity-automation
tags: ["google-drive", "file-sharing", "team-announcements", "workflow-automation", "google-workspace"]
install_count: 30700
rating: 4.60 (148 reviews)
github: https://github.com/googleworkspace/cli
---

# gws-workflow-file-announce

> 通过Google工作流在Google Chat空间中发布云端硬盘文件通知，方便团队协作。

**Stats**: 30,700 installs · 4.6/5 (148 reviews)

## Before / After 对比

### 自动通知文件更新，提升团队协作。

## Readme

# 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

| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `--file-id` | ✓ | — | Drive file ID to announce |
| `--space` | ✓ | — | Chat space name (e.g. spaces/SPACE_ID) |
| `--message` | — | — | Custom announcement message |
| `--format` | — | — | Output 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

- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth
- [gws-workflow](../gws-workflow/SKILL.md) — All cross-service productivity workflows commands


---
*Source: https://skills.yangsir.net/skill/ssh2-gws-workflow-file-announce*
*Markdown mirror: https://skills.yangsir.net/api/skill/ssh2-gws-workflow-file-announce/markdown*