We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a1821f commit ec05f8aCopy full SHA for ec05f8a
1 file changed
.github/workflows/produce-statistics.yml
@@ -72,6 +72,17 @@ jobs:
72
name: analysis_results
73
path: analysis_results
74
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
+
86
- name: Notify PR author
87
if: github.event_name == 'pull_request'
88
uses: marocchino/sticky-pull-request-comment@v2
@@ -81,4 +92,4 @@ jobs:
92
Artifact with results: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
93
94
Summary:
- $(cat $GITHUB_WORKSPACE/analysis_results/summary.txt || echo "No summary file found")
95
+ ${{ env.summary }}
0 commit comments