Fix publish_docs.yml: composite action was wiping ./src/ - #1276
Open
hschilling wants to merge 1 commit into
Open
Fix publish_docs.yml: composite action was wiping ./src/#1276hschilling wants to merge 1 commit into
hschilling wants to merge 1 commit into
Conversation
The prepare_environment composite action does its own unqualified actions/checkout@v6 with no path: argument, which wipes the workspace root -- including any ./src/ we've laid down. This caused workflow_dispatch runs on release tags to fail at the Build docs step with: Error: An error occurred trying to start process '/usr/bin/bash' with working directory '/home/runner/work/Aviary/Aviary/src'. No such file or directory Reorder so prepare_docs_environment runs first (its internal checkout lands in the workspace root and we ignore that tree) and the tag checkout into ./src/ runs afterward. ./actions/ survives both because actions/checkout only cleans the directory it owns. Co-Authored-By: Claude <noreply@anthropic.com>
jkirk5
approved these changes
Aug 21, 2026
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.
Problem
workflow_dispatchruns ofpublish_docs.ymlfail on the Build docs step with:Root cause
The
prepare_environmentcomposite action (.github/actions/prepare_environment/action.ymllines 57-58) does its ownactions/checkout@v6with nopath:argument. That unqualified checkout owns the workspace root and cleans it — wiping the./src/tree that the preceding "Checkout repository at target tag" step laid down.Fix
Reorder the steps so
prepare_docs_environmentruns before the tag checkout:Checkout actions— sparse-checks out into./actions/prepare_docs_environment— its internal checkout lands in the root (we ignore that tree);./actions/survives because it's owned by a different checkoutCheckout repository at target tag— now lays down./src/where nothing else will touch itBuild docs/Publish docs— run against./src/No changes to the composite action itself (which is shared across other workflows).
🤖 Generated with Claude Code