Skip to content

Commit 07d676f

Browse files
committed
Fix escaping of env vars
1 parent 3bc4afd commit 07d676f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/csqa.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,12 @@ jobs:
140140
id: performance_report
141141
run: |
142142
PHPCS_OUTPUT=$(./vendor/bin/phpcs --standard=VariableAnalysis --report=Performance ./PHPMailer.php)
143-
echo "${PHPCS_OUTPUT}" > ${env.PHPCS_OUTPUT_FILE}
143+
echo "${PHPCS_OUTPUT}" > ${{ env.PHPCS_OUTPUT_FILE }}
144144
145145
- name: Parse performance report
146146
id: parse_performance_report
147147
run: |
148-
TOTAL_SECS=$(cat ${env.PHPCS_OUTPUT_FILE} | grep -Eo 'TOTAL SNIFF PROCESSING TIME[ ]+[0-9.]+'|awk '{ print $5 }')
148+
TOTAL_SECS=$(cat ${{ env.PHPCS_OUTPUT_FILE }} | grep -Eo 'TOTAL SNIFF PROCESSING TIME[ ]+[0-9.]+'|awk '{ print $5 }')
149149
echo "Performance time was ${TOTAL_SECS} (max ${{ env.MAX_PHPCS_PERF_SECS }})"
150150
echo "PHPCS_PERF_SECS=${TOTAL_SECS}" >> $GITHUB_OUTPUT
151151

0 commit comments

Comments
 (0)