Skip to content

Commit

Permalink
Add script to sync signatures with 4bytes (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
jankjr authored Jul 3, 2023
1 parent da0970d commit a930cfb
Show file tree
Hide file tree
Showing 4 changed files with 1,260 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/4bytes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Tests

on:
push:
branches:
- master
pull_request:
types:
- closed

jobs:
deployment-scripts:
if: github.event.pull_request.merged == true
name: 'Deployment Scripts'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
- run: yarn install --immutable
- run: yarn compile
- run: yarn run:4bytes
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 4bytes-syncced.json
commit_options: '--no-verify --signoff'
file_pattern: 'scripts/4bytes-syncced.json'

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"size": "hardhat size-contracts",
"slither": "python3 tools/slither.py",
"prepare": "husky install",
"run:backtests": "npx hardhat run scripts/ci_backtest_plugin.ts"
"run:backtests": "npx hardhat run scripts/ci_backtest_plugin.ts",
"run:4bytes": "npx hardhat run scripts/4bytes.ts"
},
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit a930cfb

Please sign in to comment.