Skip to content

Commit

Permalink
Run gas-diff when changed .sol
Browse files Browse the repository at this point in the history
  • Loading branch information
atarpara committed Sep 19, 2024
1 parent c66766d commit cd43a55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
skip: ./.git,package-lock.json,ackee-blockchain-solady-report.pdf,EIP712Mock.sol

gas-diff:
if: github.event_name == 'pull_request'
if: contains(github.event.pull_request.changed_files, '*.sol') # Run only if .sol files are changed
permissions: write-all
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -129,3 +129,4 @@ jobs:
with:
delete: ${{ !steps.gas_diff.outputs.markdown }}
message: ${{ steps.gas_diff.outputs.markdown }}

0 comments on commit cd43a55

Please sign in to comment.