Skip to content

ci(release): notify workflow-registry on tag publish (G1 / workflow-registry#79)#20

Merged
intel352 merged 3 commits into
mainfrom
feat/notify-registry-on-release
May 21, 2026
Merged

ci(release): notify workflow-registry on tag publish (G1 / workflow-registry#79)#20
intel352 merged 3 commits into
mainfrom
feat/notify-registry-on-release

Conversation

@intel352
Copy link
Copy Markdown
Contributor

Summary

  • Fires a repository_dispatch event (event-type: plugin-release) to GoCodeAlone/workflow-registry on every non-prerelease tag push.
  • client_payload.plugin = workflow-plugin-migrations — consumed by the registry's sync-registry-manifests.yml handler (shipped in ci(sync-registry): single-plugin sync on plugin-release dispatch (G2 / #79 Piece 2) workflow-registry#84) to update plugins/workflow-plugin-migrations/manifest.json and open a targeted sync PR in real-time.
  • The if: condition gates on tag not being a pre-release (no hyphen), so v1.2.3 fires but v1.2.3-rc1 does not.
  • The secrets.repo_dispatch_token is an org-level secret pre-configured for all GoCodeAlone repos.

Reference: GoCodeAlone/workflow-registry#79 (G2 dispatch handler)

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings May 21, 2026 10:48
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the release automation by notifying the central GoCodeAlone/workflow-registry repo whenever a stable (non-prerelease) tag is pushed, enabling near-real-time registry manifest sync PRs.

Changes:

  • Add a notify-workflow-registry job that triggers a repository_dispatch (event-type: plugin-release) to GoCodeAlone/workflow-registry.
  • Gate the notification to stable tags only (tags without -).
  • Send client_payload.plugin=workflow-plugin-migrations for the registry-side handler to target the correct manifest.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

notify-workflow-registry:
name: Notify workflow-registry
runs-on: ubuntu-latest
needs: release
Comment thread .github/workflows/release.yml Outdated
name: Notify workflow-registry
runs-on: ubuntu-latest
needs: release
if: ${{ !contains(inputs.tag_name || github.ref_name, '-') }}
Comment thread .github/workflows/release.yml Outdated
name: Notify workflow-registry
runs-on: ubuntu-latest
needs: release
if: ${{ !contains(inputs.tag_name || github.ref_name, '-') }}
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/release.yml Outdated
Comment on lines +106 to +111
uses: peter-evans/repository-dispatch@v4
with:
token: ${{ secrets.repo_dispatch_token }}
repository: GoCodeAlone/workflow-registry
event-type: plugin-release
client-payload: '{"plugin": "workflow-plugin-migrations"}'
@intel352 intel352 merged commit 61e8701 into main May 21, 2026
5 checks passed
@intel352 intel352 deleted the feat/notify-registry-on-release branch May 21, 2026 12:11
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