Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script to sync signatures with 4bytes #855

Merged
merged 2 commits into from
Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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