feat!: repackage as composite action (v0.2.0) - #1
Conversation
Aligns with the established naming convention where mbl-actionhub-* repos
are composite actions that mbl-actionhub's reusable workflows internally
consume. Same shape as mbl-actionhub-bump-version + mbl-actionhub-
resolve-version. Consumer entry point stays unified through mbl-actionhub.
Architecture:
Consumer's workflow
↓ (reusable workflow)
mbl-actionhub/.github/workflows/sync-docs-to-wiki.yml@v1.8.0
↓ (composite action)
MobileByteLabs/mbl-actionhub-docshub@v0.2.0 ← this repo
Changes
-------
* action.yml ADDED at root — composite action with docs-dir, sidebar-mode,
token inputs. github.action_path resolves to the script location.
* .github/workflows/sync-docs-to-wiki.yml DELETED (the v0.1.0 reusable
workflow) — that role now belongs to mbl-actionhub
* README.md rewritten to describe the composite-action arch + 3-layer flow
* CHANGELOG.md adds 0.2.0 entry marking 0.1.0 as deprecated (do NOT pin)
* CI updated to also validate action.yml shape (composite + required inputs)
Token plumbing
--------------
Composite actions can't read secrets.GITHUB_TOKEN directly — must be
passed explicitly via 'with: token:'. The mbl-actionhub reusable workflow
handles this for consumers.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThe project transitions from a reusable GitHub Actions workflow distributed in a separate repository to a composite GitHub Action defined at the repository root. The new ChangesComposite Action Repackaging
🎯 3 (Moderate) | ⏱️ ~25 minutes
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
BREAKING — repackages this repo from a reusable workflow into a composite action, aligning with the established naming pattern.
Why
mbl-actionhub-*repos are composite actions thatmbl-actionhub's reusable workflows internally consume. Same shape asmbl-actionhub-bump-version+mbl-actionhub-resolve-version. v0.1.0 (released yesterday) accidentally shipped as a reusable workflow — inverting the layering.Architecture after this PR + companion mbl-actionhub PR
Diff
action.ymldocs-dir,sidebar-mode,tokeninputs.github/workflows/sync-docs-to-wiki.ymlmbl-actionhubREADME.mdmbl-actionhubCHANGELOG.md.github/workflows/ci.ymlcomposite-action-shapejob — validatesaction.ymlshapeComposite action surface
github.action_pathresolves to where the action was checked out → script path stays stable.Token plumbing note
Composite actions can't read
secrets.GITHUB_TOKENdirectly. The caller (thembl-actionhubreusable workflow) passes it viawith: token: ${{ secrets.GITHUB_TOKEN }}. Documented in the README + the input'sdescription:.Self-test
The CI already validated this works:
Coordinated rollout (3 more PRs after this merges + we tag v0.2.0)
mbl-actionhubPR — add reusable workflowsync-docs-to-wiki.ymlthatuses:this composite. Tagv1.8.0.mbl-library-template-kmpPR — retarget caller frommbl-actionhub-docshub@v0.1.0→mbl-actionhub@v1.8.0.kmp-product-flavors#114— update PR's branch frommbl-actionhub-docshub@v0.1.0→mbl-actionhub@v1.8.0.developmentalready referencesmbl-actionhub@v1.8.0from PR #127 — becomes CORRECT once we ship v1.8.0. Will close the now-unnecessary fix PR #128.)🤖 Generated with Claude Code
Summary by CodeRabbit
Breaking Changes
New Features
Documentation