Replies: 1 comment
-
|
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 }} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?Beta Was this translation helpful? Give feedback.
All reactions