Skip to content

Commit

Permalink
Update Foundry Gas Differences workflow and dependencies (#57)
Browse files Browse the repository at this point in the history
* Update Foundry Gas Differences workflow and dependencies

* Update Foundry Gas Differences workflow permissions
  • Loading branch information
Aboudjem authored Apr 26, 2024
1 parent d2c7d4a commit 6a4b32d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/foundry-gas-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ on:
jobs:
compare_gas_reports:
runs-on: ubuntu-latest
permissions: # Add this section to modify permissions
contents: write # This gives write permission to the repository contents
actions: write # This grants permission to upload artifacts
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
uses: foundry-rs/foundry-toolchain@v1.2.0
with:
version: nightly
- name: Install dependencies
Expand All @@ -48,7 +51,7 @@ jobs:

- name: Add gas diff to sticky comment
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
uses: marocchino/sticky-pull-request-comment@v2
uses: marocchino/sticky-pull-request-comment@v2.9.0
with:
# delete the comment in case changes no longer impact gas costs
delete: ${{ !steps.gas_diff.outputs.markdown }}
Expand Down

0 comments on commit 6a4b32d

Please sign in to comment.