From 6f2df3fbb603a91e4f8676bafac08790f781f474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Walter?= Date: Wed, 27 Sep 2023 14:10:08 +0700 Subject: [PATCH] Split summary and exit --- .github/workflows/gas_reports.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gas_reports.yml b/.github/workflows/gas_reports.yml index 0876bfa9f..dc2b49d94 100644 --- a/.github/workflows/gas_reports.yml +++ b/.github/workflows/gas_reports.yml @@ -36,4 +36,7 @@ jobs: result=$(python scripts/compare_snapshot.py 2>&1) exit_code=$? echo "$result" >> "$GITHUB_STEP_SUMMARY" - exit $exit_code + echo "{exit_code}=$exit_code" >> $GITHUB_OUTPUT + + - name: Exit step based on exit_code + run: exit ${{ steps.run-script.outputs.exit_code }}