Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Subscribe to Google Drive file/folder change notifications via Google Workspace Events and Pub/Sub.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: recipe-watch-drive-changes3description: "Subscribe to change notifications on a Google Drive file or folder."4metadata:5version: 0.22.56openclaw:7category: "recipe"8domain: "engineering"9requires:10bins:11- gws12skills:13- gws-events14---1516# Watch for Drive Changes1718> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-events`1920Subscribe to change notifications on a Google Drive file or folder.2122## Steps23241. Create subscription: `gws events subscriptions create --json '{"targetResource": "//drive.googleapis.com/drives/DRIVE_ID", "eventTypes": ["google.workspace.drive.file.v1.updated"], "notificationEndpoint": {"pubsubTopic": "projects/PROJECT/topics/TOPIC"}, "payloadOptions": {"includeResource": true}}'`252. List active subscriptions: `gws events subscriptions list`263. Renew before expiry: `gws events +renew --subscription SUBSCRIPTION_ID`2728