mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: add checkout step to classify-issue-severity workflow (#21236)
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.5
parent
a87a44412f
commit
c44a2c3a9b
@@ -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
|
||||
@@ -140,6 +140,25 @@ jobs:
|
||||
|
||||
**Critical**: Output ONLY the JSON object, nothing else. The JSON will be parsed and validated.
|
||||
|
||||
- name: Extract Result from Execution File
|
||||
id: extract
|
||||
env:
|
||||
EXECUTION_FILE: ${{ steps.analysis.outputs.execution_file }} # zizmor: ignore[template-injection]
|
||||
run: |
|
||||
if [ ! -f "$EXECUTION_FILE" ]; then
|
||||
echo "Execution file not found: $EXECUTION_FILE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Extract the result from the execution file
|
||||
RESULT=$(jq -r '.result // empty' < "$EXECUTION_FILE")
|
||||
|
||||
{
|
||||
echo "result<<EOF"
|
||||
echo "$RESULT"
|
||||
echo "EOF"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
post-comment:
|
||||
name: Post Classification Comment
|
||||
needs: analyze
|
||||
|
||||
Reference in New Issue
Block a user