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

@iobuhov iobuhov commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

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

@iobuhov iobuhov requested a review from a team as a code owner June 4, 2026 13:27
iobuhov and others added 2 commits June 9, 2026 16:22
…heckout

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@r0b1n r0b1n force-pushed the worktree-fix-welcome-workflow branch from 07f2dda to 44377f5 Compare June 9, 2026 14:22
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.

3 participants