Skip to content

fix(docs-preview): cp _site to runner-owned dir before sed#171

Merged
rfay merged 1 commit into
mainfrom
20260629_sed
Jun 29, 2026
Merged

fix(docs-preview): cp _site to runner-owned dir before sed#171
rfay merged 1 commit into
mainfrom
20260629_sed

Conversation

@rfay

@rfay rfay commented Jun 29, 2026

Copy link
Copy Markdown
Member

Summary

jekyll-build-pages runs in a Docker container as root, so the files it writes to _site/ are root-owned. Both chmod and sed -i fail with "Operation not permitted" when the runner tries to modify them.

Fix: copy _site/ to _site_preview/ (the copy is owned by the runner) before running sed, then deploy from the copy.

Test plan

  • Open a docs PR and confirm the preview comment appears
  • Verify all links in the preview point to staging-coder.ddev.com

🤖 Generated with Claude Code

jekyll-build-pages creates files owned by root; chmod and sed -i both
fail. Copying to a new directory transfers ownership to the runner,
making in-place sed edits work.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-29 21:09 UTC

@rfay rfay merged commit ad7ddd7 into main Jun 29, 2026
15 of 22 checks passed
@rfay rfay deleted the 20260629_sed branch June 29, 2026 21:09
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.

1 participant