Skip to content

Commit ec05f8a

Browse files
author
Teodors Lisovenko
committed
v33
1 parent 9a1821f commit ec05f8a

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/produce-statistics.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,17 @@ jobs:
7272
name: analysis_results
7373
path: analysis_results
7474

75+
- name: Read summary
76+
id: read_summary
77+
run: |
78+
if [ -f "$GITHUB_WORKSPACE/analysis_results/summary.txt" ]; then
79+
echo "summary<<EOF" >> $GITHUB_ENV
80+
cat "$GITHUB_WORKSPACE/analysis_results/summary.txt" >> $GITHUB_ENV
81+
echo "EOF" >> $GITHUB_ENV
82+
else
83+
echo "summary=No summary file found" >> $GITHUB_ENV
84+
fi
85+
7586
- name: Notify PR author
7687
if: github.event_name == 'pull_request'
7788
uses: marocchino/sticky-pull-request-comment@v2
@@ -81,4 +92,4 @@ jobs:
8192
Artifact with results: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
8293
8394
Summary:
84-
$(cat $GITHUB_WORKSPACE/analysis_results/summary.txt || echo "No summary file found")
95+
${{ env.summary }}

0 commit comments

Comments
 (0)