From c234431bca6ee996385435b8ac677ee7ea797979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Walter?= Date: Wed, 27 Sep 2023 13:48:36 +0700 Subject: [PATCH] Fix snapshot raising and not setting summary --- .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