Skip to content

Commit

Permalink
Fix escaping of env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
sirbrillig committed Dec 9, 2024
1 parent 3bc4afd commit 07d676f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/csqa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ jobs:
id: performance_report
run: |
PHPCS_OUTPUT=$(./vendor/bin/phpcs --standard=VariableAnalysis --report=Performance ./PHPMailer.php)
echo "${PHPCS_OUTPUT}" > ${env.PHPCS_OUTPUT_FILE}
echo "${PHPCS_OUTPUT}" > ${{ env.PHPCS_OUTPUT_FILE }}
- name: Parse performance report
id: parse_performance_report
run: |
TOTAL_SECS=$(cat ${env.PHPCS_OUTPUT_FILE} | grep -Eo 'TOTAL SNIFF PROCESSING TIME[ ]+[0-9.]+'|awk '{ print $5 }')
TOTAL_SECS=$(cat ${{ env.PHPCS_OUTPUT_FILE }} | grep -Eo 'TOTAL SNIFF PROCESSING TIME[ ]+[0-9.]+'|awk '{ print $5 }')
echo "Performance time was ${TOTAL_SECS} (max ${{ env.MAX_PHPCS_PERF_SECS }})"
echo "PHPCS_PERF_SECS=${TOTAL_SECS}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 07d676f

Please sign in to comment.