Replies: 2 comments
|
two answers:
- id: p
run: |
{ echo 'body<<EOF'; cat my_prompt.md; echo EOF; } >> "$GITHUB_OUTPUT"
- uses: anthropics/claude-code-action@v1
with:
prompt: ${{ steps.p.outputs.body }} |
|
|
|
two answers:
- id: p
run: |
{ echo 'body<<EOF'; cat my_prompt.md; echo EOF; } >> "$GITHUB_OUTPUT"
- uses: anthropics/claude-code-action@v1
with:
prompt: ${{ steps.p.outputs.body }} |
|
|
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I have a workflow where we want to invoke a pretty complicated prompt triggered by github actions. The documentation I've found for the
claude-code-actiongithub action references thepromptargument, but most examples have the prompt inline in the action YAML config.I do find reference to a config option
prompt_fileinclaude-code-base-action@betahere:https://github.com/anthropics/claude-code-base-action
Referring to an external file for the prompt to execute is preferred in our specific use-case.
My question is twofold:
claude-code-actionhave the ability to refer to a prompt file for execution?All reactions