Skip to content

Commit

Permalink
Fix snapshot raising and not setting summary (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter authored Sep 27, 2023
1 parent 299b2b4 commit a154ade
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/gas_reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a154ade

Please sign in to comment.