Skip to content

Add sparse-checkout input for monorepo support#153

Merged
feluelle merged 1 commit into
astronomer:mainfrom
crobertson-astro:sparse-checkout-monorepo
Jul 2, 2026
Merged

Add sparse-checkout input for monorepo support#153
feluelle merged 1 commit into
astronomer:mainfrom
crobertson-astro:sparse-checkout-monorepo

Conversation

@crobertson-astro

Copy link
Copy Markdown
Contributor

Summary

  • Adds an optional sparse-checkout input that is passed through to actions/checkout.
  • When set, only the listed paths (plus repo-root files) are checked out, avoiding ephemeral storage exhaustion when deploying from a subfolder of a large monorepo.
  • Default is empty (full checkout), so existing behavior is preserved for current users — including those with root-folder set but shared files elsewhere in the repo.

Closes #152.

Test plan

  • Workflow using sparse-checkout: path/to/astro-project only fetches that subtree.
  • Workflow with sparse-checkout unset performs a full checkout (unchanged behavior).
  • Existing e2e tests continue to pass.

🤖 Generated with Claude Code

Adds an optional `sparse-checkout` input that is passed through to
actions/checkout. When set, only the listed paths (plus repo-root
files) are checked out, which avoids exhausting ephemeral storage
when deploying from a subfolder of a large monorepo.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@crobertson-astro crobertson-astro requested a review from a team as a code owner June 12, 2026 20:53
@feluelle feluelle merged commit 22000c6 into astronomer:main Jul 2, 2026
2 checks passed
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.

Monorepo support: use sparse checkout when a subfolder is specified

2 participants