File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1818 if : github.event.label.name == 'triage-check'
1919 runs-on : ubuntu-latest
2020 outputs :
21- result : ${{ steps.analysis .outputs.result }}
21+ result : ${{ steps.extract .outputs.result }}
2222
2323 steps :
2424 - name : Checkout repository
@@ -140,6 +140,25 @@ jobs:
140140
141141 **Critical**: Output ONLY the JSON object, nothing else. The JSON will be parsed and validated.
142142
143+ - name : Extract Result from Execution File
144+ id : extract
145+ env :
146+ EXECUTION_FILE : ${{ steps.analysis.outputs.execution_file }} # zizmor: ignore[template-injection]
147+ run : |
148+ if [ ! -f "$EXECUTION_FILE" ]; then
149+ echo "Execution file not found: $EXECUTION_FILE"
150+ exit 1
151+ fi
152+
153+ # Extract the result from the execution file
154+ RESULT=$(jq -r '.result // empty' < "$EXECUTION_FILE")
155+
156+ {
157+ echo "result<<EOF"
158+ echo "$RESULT"
159+ echo "EOF"
160+ } >> "$GITHUB_OUTPUT"
161+
143162 post-comment :
144163 name : Post Classification Comment
145164 needs : analyze
You can’t perform that action at this time.
0 commit comments