feat: publishing ci cd - #3
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds an automated CI/CD workflow that keeps this repository’s commit SHA in sync with the xAI Plugin Marketplace entry by opening/updating a PR in the marketplace repo after pushes to main.
Changes:
- Documented the plugin’s publishing/distribution mechanism via the xAI Plugin Marketplace in
README.md. - Added a new GitHub Actions workflow to update the marketplace catalog entry’s pinned SHA and open/update a corresponding PR.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| README.md | Adds a “Publishing” section describing marketplace distribution and where to find the workflow/setup info. |
| .github/workflows/sync-marketplace.yml | Introduces an automation workflow that updates the marketplace JSON, regenerates/validates the catalog, and opens/updates an upstream PR. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Jakub-Vacek
marked this pull request as ready for review
June 29, 2026 12:19
drobnikj
approved these changes
Jun 30, 2026
drobnikj
left a comment
Member
There was a problem hiding this comment.
Two notes, pre-approving. Let me know once you need to create tokens and repos.
…uild-plugin into feat/publishing-ci-cd # Conflicts: # README.md
Collaborator
Author
Thanks! I will need it after this is tested by Apify. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds CI/CD workflow to update the SHA in xai marketplace. This workflow is only for update, not upsert. More context:
This plugin is distributed through the xAI Plugin Marketplace
as a remote
urlsource, pinned to a specific commit SHA of this repository.The
sync-marketplaceworkflow keeps that pinup to date: after every push to
main, it opens (or updates) a PR against themarketplace that re-pins the
apifyentry to the new commit.One-time setup
The automation can only update an entry that already exists upstream, and it
needs a fork plus a token. Do these once:
1. Fork the marketplace
Fork
xai-org/plugin-marketplaceto
apify/plugin-marketplace. The workflow pushes its branch here and opensthe cross-fork PR from it.
2. Create the token
Create a fine-grained PAT with access limited to
apify/plugin-marketplaceand these repository permissions:
GitHub gates PR creation on write access to the head (fork) repo, so a token
scoped to the fork is sufficient to open the PR against the upstream repo.
Add it to this repo as a secret named
MARKETPLACE_PAT(Settings → Secrets and variables → Actions → New repository secret).
3. Submit the first PR manually
The workflow is update-only, so the initial entry must be added by hand. In your
fork, add this object to the
pluginsarray in.grok-plugin/marketplace.json,replacing the
shawith the currentmaincommit(
git ls-remote https://github.com/apify/apify-grok-build-plugin.git HEAD):{ "name": "apify", "description": "Apify plugin for Grok Build — Apify MCP server, an `apify` routing subagent, and skills covering Actor development, actorization, SDK integration, and the ultimate scraper.", "category": "data-extraction", "source": { "source": "url", "url": "https://github.com/apify/apify-grok-build-plugin.git", "sha": "REPLACE_WITH_40_CHAR_COMMIT_SHA" }, "homepage": "https://apify.com", "keywords": ["apify", "web-scraping", "actors", "mcp", "automation"], "domains": ["apify.com"] }Then regenerate the index and validate before opening the PR:
After setup
Once that first PR is merged, every push to
mainautomatically opens/updates are-pin PR. No further manual steps are needed.
You can also trigger it on demand from the Actions tab
(
Sync plugin SHA to xAI marketplace→ Run workflow).