Skip to content

Add spec_update workflow for automated API spec updates#463

Merged
cguldner merged 1 commit into
dropbox:masterfrom
cguldner:add-spec-update-workflow
Jul 21, 2026
Merged

Add spec_update workflow for automated API spec updates#463
cguldner merged 1 commit into
dropbox:masterfrom
cguldner:add-spec-update-workflow

Conversation

@cguldner

Copy link
Copy Markdown
Contributor

Summary

  • Add a new spec_update.yml GitHub Actions workflow matching the pattern used across other Dropbox SDKs
  • Uses OIDC + GitHub App token (sdk-updater-github-app) via AWS Secrets Manager
  • Updates both spec and stone submodules to latest, then runs python generate_base_client.py to regenerate Swift types and clients
  • Closes superseded spec update PRs with a comment linking to the replacement
  • Adds automated-spec-update label for filtering/tracking
  • Triggered via workflow_dispatch or repository_dispatch (type: spec_update)

Prerequisites

  • IAM role oidc-github-dropbox-swiftydropbox-repo needs to be created with access to sdk-updater-github-app
  • Add SwiftyDropbox to the dispatch matrix in dropbox-api-spec's dispatch_spec_update.yml

Test plan

  • Trigger via workflow_dispatch and confirm generation succeeds
  • Confirm old PRs get closed and commented when a new spec update runs
  • Verify the multiline commit message renders correctly in the PR body

🤖 Generated with Claude Code

Add a GitHub Actions workflow that updates the spec and stone
submodules, regenerates Swift SDK code, and opens a PR. Uses OIDC +
GitHub App token via AWS Secrets Manager, closes superseded PRs,
and labels for tracking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cguldner
cguldner enabled auto-merge (squash) July 21, 2026 20:32
@cguldner
cguldner merged commit c5aa89a into dropbox:master Jul 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants