From 6559393e48bddd8a84b42ebcfbb43fd80235f9ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Walter?= Date: Wed, 27 Sep 2023 14:00:40 +0700 Subject: [PATCH] Fix snapshot raising and not setting summary (#378) --- .github/workflows/gas_reports.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gas_reports.yml b/.github/workflows/gas_reports.yml index e34c5f1c3..0876bfa9f 100644 --- a/.github/workflows/gas_reports.yml +++ b/.github/workflows/gas_reports.yml @@ -33,9 +33,7 @@ jobs: env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} run: | - result=$(python scripts/compare_snapshot.py) - result=$(echo "$result" | tail -n +3) # Strip the first two lines - result="${result//'%'/'%25'}" - result="${result//$'\n'/'%0A'}" - result="${result//$'\r'/'%0D'}" - echo "${result}" >> $GITHUB_STEP_SUMMARY + result=$(python scripts/compare_snapshot.py 2>&1) + exit_code=$? + echo "$result" >> "$GITHUB_STEP_SUMMARY" + exit $exit_code