Skip to content

fix(ci): embed welcome message in PullRequestFork workflow to avoid checkout#2250

Open
iobuhov wants to merge 2 commits into
mendix:mainfrom
iobuhov:worktree-fix-welcome-workflow
Open

fix(ci): embed welcome message in PullRequestFork workflow to avoid checkout#2250
iobuhov wants to merge 2 commits into
mendix:mainfrom
iobuhov:worktree-fix-welcome-workflow

Conversation

@iobuhov
Copy link
Copy Markdown
Collaborator

@iobuhov iobuhov commented Jun 4, 2026

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.md without first checking out the repository. GitHub Actions runners start empty — no repo files exist unless you explicitly run actions/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

  • Replace gh pr comment --body-file with gh pr comment --body "$(cat <<'EOF'...)"
  • Embed the full welcome message content from .github/pull_request_welcome_message.md

Test Plan

The workflow will automatically trigger on the next external PR that opens. No checkout step needed anymore.

🤖 Generated with Claude Code

…heckout

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@iobuhov iobuhov requested a review from a team as a code owner June 4, 2026 13:27
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant