From fa90bc8e74c59749a87169f3ccbedec078033ec8 Mon Sep 17 00:00:00 2001 From: Steve Faulkner Date: Wed, 25 Mar 2026 08:37:07 -0500 Subject: [PATCH] fix: pass prompt via step output instead of unsupported prompt_file input The ask-bonk action doesn't support a prompt_file input. The prompt was silently ignored, causing the scheduled run to fail with 'PROMPT input is required'. Set the prompt as a multiline step output and reference it via the prompt input instead. --- .github/workflows/nextjs-tracker.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nextjs-tracker.yml b/.github/workflows/nextjs-tracker.yml index fbf8b317..7cb1061f 100644 --- a/.github/workflows/nextjs-tracker.yml +++ b/.github/workflows/nextjs-tracker.yml @@ -67,9 +67,9 @@ jobs: fi - name: Build tracker prompt + id: build_prompt if: steps.commits.outputs.has_commits == 'true' run: | - HOURS="${{ github.event.inputs.since_hours || '24' }}" DRY_RUN="${{ github.event.inputs.dry_run || 'false' }}" if [ "$DRY_RUN" = "true" ]; then @@ -114,7 +114,11 @@ jobs: PROMPT_EOF fi - echo "Prompt written (dry_run=$DRY_RUN)" + { + echo 'prompt<> "$GITHUB_OUTPUT" - name: Run Next.js Tracker if: steps.commits.outputs.has_commits == 'true' @@ -129,7 +133,7 @@ jobs: permissions: write opencode_dev: false agent: nextjs-tracker - prompt_file: /tmp/tracker-prompt.md + prompt: ${{ steps.build_prompt.outputs.prompt }} - name: Skip (no commits) if: steps.commits.outputs.has_commits == 'false'