Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: extract result from claude-code-action execution file
The claude-code-action doesn't output a 'result' field directly.
Instead, it provides an 'execution_file' output that contains
the execution details. Added a step to read this file and extract
the result for downstream jobs.
  • Loading branch information
david-fraley committed Dec 11, 2025
commit 8fe52fbc162ee64c7c7ad4ed00a6bd3a238856a3
19 changes: 18 additions & 1 deletion .github/workflows/classify-issue-severity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
if: github.event.label.name == 'triage-check'
runs-on: ubuntu-latest
outputs:
result: ${{ steps.analysis.outputs.result }}
result: ${{ steps.extract.outputs.result }}

steps:
- name: Checkout repository
Expand Down Expand Up @@ -140,6 +140,23 @@ jobs:

**Critical**: Output ONLY the JSON object, nothing else. The JSON will be parsed and validated.

- name: Extract Result from Execution File
id: extract
run: |
EXECUTION_FILE="${{ steps.analysis.outputs.execution_file }}"

if [ ! -f "$EXECUTION_FILE" ]; then
echo "Execution file not found: $EXECUTION_FILE"
exit 1
fi

# Extract the result from the execution file
RESULT=$(cat "$EXECUTION_FILE" | jq -r '.result // empty')

echo "result<<EOF" >> "$GITHUB_OUTPUT"
echo "$RESULT" >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"

post-comment:
name: Post Classification Comment
needs: analyze
Expand Down
Loading