From 7106fb95ac4c817bcae535c2742c38f696368169 Mon Sep 17 00:00:00 2001 From: AlbertoCentonze <11707683+AlbertoCentonze@users.noreply.github.com> Date: Wed, 2 Sep 2026 12:09:50 +0200 Subject: [PATCH] fix: skip empty gas report comments --- .github/actions/foundry-gas-report/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/foundry-gas-report/action.yml b/.github/actions/foundry-gas-report/action.yml index f483113..865f53d 100644 --- a/.github/actions/foundry-gas-report/action.yml +++ b/.github/actions/foundry-gas-report/action.yml @@ -8,6 +8,7 @@ runs: id: gas - name: Prepare comment + if: ${{ !contains(steps.gas.outputs.report, 'Seems like you are not measuring gas of any operations yet.') }} shell: bash run: | - printf '%s' "${{ steps.gas.outputs.report }}" > /tmp/content/gas.txt \ No newline at end of file + printf '%s' "${{ steps.gas.outputs.report }}" > /tmp/content/gas.txt