fix(docs): deploy on tag push, not on the unreachable workflow_call branch#981
Merged
danielmeppiel merged 3 commits intomainfrom Apr 27, 2026
Merged
fix(docs): deploy on tag push, not on the unreachable workflow_call branch#981danielmeppiel merged 3 commits intomainfrom
danielmeppiel merged 3 commits intomainfrom
Conversation
…ranch
In a reusable workflow, `github.event_name` reflects the CALLER's
event (here: `push` of a v* tag from build-release.yml), NOT
`workflow_call`. The previous gate
github.event_name == 'workflow_call' && inputs.is_prerelease == false
never matched on a release, so:
- the upload-pages-artifact step was skipped
- the deploy job was skipped
v0.9.4 release: 'Deploy Docs / build' succeeded, 'Deploy Docs / deploy'
SKIPPED. The site still serves <0.9.4 content (verified: 'Skill
collection' anchor missing from live page-types.html).
Detect the tag-push context directly:
github.event_name == 'push' && github.ref_type == 'tag'
&& inputs.is_prerelease == false
Same fix on both the upload-artifact step and the deploy job. PR runs
(event_name == 'pull_request') still build-only because none of the
three branches match -- behavior preserved.
Manual workflow_dispatch triggered to ship v0.9.4 docs immediately.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
danielmeppiel
added a commit
that referenced
this pull request
Apr 27, 2026
… docs are live v0.9.4 docs deploy completed (manual workflow_dispatch run 24983311706 after the underlying skip bug was identified -- fix in #981). The live page now exposes #skill-collection-skillsnameskillmd, so we can land readers exactly on the heading that documents the skills/<name>/SKILL.md layout npx skills users already know. Verified live: curl -s .../reference/package-types/ | grep -oE 'id="skill[^"]*"' -> id="skill-bundle-skillmd-at-root" -> id="skill-collection-skillsnameskillmd" Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes a regression where the docs site was not deploying after bot-cut releases once the docs workflow was converted to a reusable workflow (workflow_call). The change updates the deploy gating to correctly detect the tag-push caller context so upload + deploy run for stable tag releases again.
Changes:
- Update
.github/workflows/docs.ymlupload/deployif:gates to detect stable tag-push context (caller event) instead of an unreachableworkflow_callbranch. - Add explanatory comments in
docs.ymldocumenting the reusable-workflowgithub.*context gotcha. - Add an Unreleased changelog entry describing the docs auto-deploy fix.
Show a summary per file
| File | Description |
|---|---|
CHANGELOG.md |
Adds an Unreleased “Fixed” entry for the docs auto-deploy regression. |
.github/workflows/docs.yml |
Adjusts artifact upload + deploy conditions to run on stable tag-based release calls and documents the workflow_call context behavior. |
Copilot's findings
- Files reviewed: 2/2 changed files
- Comments generated: 1
danielmeppiel
added a commit
that referenced
this pull request
Apr 27, 2026
* docs(readme): add 'Coming from npx skills add?' conversion block Surgical insert between the apm.yml example and the three promises -- the funnel moment where npx-skills users decide whether to switch. Names vercel-labs/agent-skills and the real 'deploy-to-vercel' skill so the claim is verifiable in 30 seconds. Bold inline lead (no h3) keeps the page flow intact for non-npx readers; one outbound link defers prose to docs. Both commands verified locally end-to-end: whole-bundle install integrates 7 skills; --skill deploy-to-vercel integrates 1 and persists the subset into apm.yml + apm.lock.yaml's skill_subset. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * docs(readme): drop fragment, link to package-types page root Copilot reviewer caught: #skill-bundle was wrong on two counts. 1. Rendered anchor is #skill-bundle-skillmd-at-root, not #skill-bundle -- slugifier strips parens/dots/dashes differently than expected. 2. That heading documents the SKILL.md-at-root shape, but npx skills' layout is documented under 'Skill collection (skills/<name>/SKILL.md)' further down the same page. The 'Skill collection' anchor exists in source (added in 0.9.4) but is not deployed yet -- v0.9.4 docs auto-deploy from #953 is mid-rollout. Linking to the page root is robust today and lands on the right doc; both shapes are visible without a scroll. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * docs(readme): fix broken anchor in npx skills add conversion block Agent-Logs-Url: https://github.com/microsoft/apm/sessions/6725d577-cad3-4772-b2d5-d1d6bf44e926 Co-authored-by: danielmeppiel <51440732+danielmeppiel@users.noreply.github.com> * docs(readme): restore precise #skill-collection anchor now that 0.9.4 docs are live v0.9.4 docs deploy completed (manual workflow_dispatch run 24983311706 after the underlying skip bug was identified -- fix in #981). The live page now exposes #skill-collection-skillsnameskillmd, so we can land readers exactly on the heading that documents the skills/<name>/SKILL.md layout npx skills users already know. Verified live: curl -s .../reference/package-types/ | grep -oE 'id="skill[^"]*"' -> id="skill-bundle-skillmd-at-root" -> id="skill-collection-skillsnameskillmd" Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
danielmeppiel
pushed a commit
that referenced
this pull request
Apr 27, 2026
Promotes [Unreleased] to [0.10.0] - 2026-04-27. Each PR since v0.9.4 gets one 'so what' line: - #926 Microsoft 365 Cowork target ships impl - #790 marketplace authoring CLI (init, package add/set, build, check, outdated, doctor, publish) -- collapsed from 20+ bullets to one - #722 marketplace plugin -> package rename + --help sectioning -- collapsed - #980 README 'Coming from npx skills add' conversion block - #981 docs auto-deploy on tag push (real fix for the #953 attempt) - #985 pr-description-skill evals suite - #984 pr-description-skill mermaid hardening - #989 cowork sys.platform mock for Windows CI Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
TL;DR
v0.9.4 docs auto-deploy SKIPPED silently.
Deploy Docs / buildran successfully,Deploy Docs / deploywas skipped, and the public site still serves <0.9.4 content. Root cause: in a reusable workflow,github.event_namereflects the caller's event, not'workflow_call'. Detect the tag-push context directly. Manualworkflow_dispatchtriggered to ship v0.9.4 docs in parallel with this PR.Problem (WHY)
#953 fixed the missing
release: publishedevent for bot-cut releases by switching from a release-event trigger to a directworkflow_callinvocation inbuild-release.yml. That was correct and necessary. But the gate insidedocs.ymlwas never updated.The
if:on the upload-pages-artifact step and the deploy job reads:Per GitHub Actions docs, in a reusable workflow the
githubcontext is inherited from the caller. Whenbuild-release.yml(triggered bypushof a v* tag) callsdocs.yml, insidedocs.yml:github.event_name == 'push'(NOT'workflow_call')github.ref_type == 'tag'inputs.is_prerelease == falseNone of the three branches match. Build runs (no condition gates the build job). Upload + deploy skip.
Verified
This is silently broken since #953 landed and is the second-order regression of the same root cause class —
github.event_namenot behaving like authors expect under workflow_call (#953 was the inverse: author expectedrelease: publishedto fire under bot-cut releases).Approach (WHAT)
Detect the tag-push context directly. Both
build-release.yml:639andbuild-release.yml:646already gate theworkflow_callinvocation ongithub.ref_type == 'tag' && needs.create-release.outputs.is_prerelease != 'true', so the inputs are trustworthy.Applied identically on the upload-artifact step and the deploy job.
Implementation (HOW)
.github/workflows/docs.yml— two surgical replacements + a comment explaining the gotcha for the next reader. Net: +13/-2.Trade-offs
event_name == 'push' && ref_type == 'tag'inputs.*directly, but inputs always have defaults so no way to detect "actually invoked via workflow_call"workflow_dispatchandrelease: publishedbranchesValidation
gh workflow run docs.yml --ref maintriggered (run 24983311706) to ship v0.9.4 docs in parallel with this PR landingskill-collection-*anchor before fixskippedstepHow to test
After merge, on the next stable release (or by re-tagging a no-op patch):
gh run view <build-release-run> --json jobs --jq '.jobs[] | select(.name | startswith("Deploy Docs")) | "\(.name): \(.conclusion)"'Deploy Docs / build: successANDDeploy Docs / deploy: success(notskipped).Related
release: publishedworkaround that introduced this latent gap#skill-collectionanchorCo-authored-by: Copilot 223556219+Copilot@users.noreply.github.com