Skip to content

Commit 5f016c1

Browse files
committed
Try to parse with heredoc
1 parent 22fb0ca commit 5f016c1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/csqa.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@ jobs:
147147
- name: Parse performance report
148148
id: parse_performance_report
149149
run: |
150-
TOTAL_SECS=$(echo ${{ steps.performance_report.outputs.PHPCS_PERF_REPORT }}| grep -Eo 'TOTAL SNIFF PROCESSING TIME[ ]+[0-9.]+'|awk '{ print $5 }')
150+
PHPCS_OUTPUT=$(cat <<-EOF
151+
${{ steps.performance_report.outputs.PHPCS_PERF_REPORT }}
152+
EOF
153+
)"
154+
TOTAL_SECS=$(echo ${PHPCS_OUTPUT}| grep -Eo 'TOTAL SNIFF PROCESSING TIME[ ]+[0-9.]+'|awk '{ print $5 }')
151155
echo "Performance time was ${TOTAL_SECS} (max ${{ env.MAX_PHPCS_PERF_SECS }})"
152156
echo "PHPCS_PERF_SECS=${TOTAL_SECS}" >> $GITHUB_OUTPUT
153157

0 commit comments

Comments
 (0)