Skip to content

Commit b2655ae

Browse files
aboseclaude
andcommitted
fix publish workflow: pass github context via env var, not inline
Directly interpolating toJSON(github) into the run: script broke the generated shell script whenever the JSON (e.g. release body, commit messages) contained an unbalanced quote, causing "unexpected EOF while looking for matching \`\"'" failures. Pass it through an env var instead so the shell only ever parses a fixed echo statement. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012r6otLzp5xWXGirYrvAjKf
1 parent 819f4d2 commit b2655ae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/publishToPhcode.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ jobs:
1111
steps:
1212
- name: Dump GitHub context
1313
id: github_context_step
14-
run: echo '${{ toJSON(github) }}'
14+
env:
15+
GITHUB_CONTEXT: ${{ toJSON(github) }}
16+
run: echo "$GITHUB_CONTEXT"
1517
- name: release details
1618
run: |
1719
echo "$GITHUB_REF repo=${{github.event.repository.full_name}}"

0 commit comments

Comments
 (0)