fix(ci): embed welcome message in PullRequestFork workflow to avoid checkout#2250
Open
iobuhov wants to merge 2 commits into
Open
fix(ci): embed welcome message in PullRequestFork workflow to avoid checkout#2250iobuhov wants to merge 2 commits into
iobuhov wants to merge 2 commits into
Conversation
…heckout Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.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.
Summary
Fixes the failing PullRequestFork workflow by embedding the welcome message directly in the workflow file instead of reading from an external file.
Problem
The workflow was failing with "no such file or directory" because it tried to read
.github/pull_request_welcome_message.mdwithout first checking out the repository. GitHub Actions runners start empty — no repo files exist unless you explicitly runactions/checkout.Solution
Embed the welcome message inline using a bash heredoc. This eliminates the need to checkout the repository just to read a static message.
Changes
gh pr comment --body-filewithgh pr comment --body "$(cat <<'EOF'...)".github/pull_request_welcome_message.mdTest Plan
The workflow will automatically trigger on the next external PR that opens. No checkout step needed anymore.
🤖 Generated with Claude Code