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

Contract cicd version bumps #1091

Merged
merged 16 commits into from
May 15, 2024
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
29 changes: 29 additions & 0 deletions .github/workflows/migrate_new_contract.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: migrate_new_contract
on:
pull_request:
branches:
- 'main'
workflow_dispatch:

jobs:
process-abis:
runs-on: ubuntu-latest
steps:
# Checkout the repo at the state before the current push
- name: Checkout at previous commit
uses: actions/checkout@v3
with:
ref: ${{ github.event.before }}

# Save the old ABI
- name: Save old ABI
run: cp contracts/captcha/src/captcha.json dev/scripts/src/dist/contract/versionBump/oldContract.json

# Checkout back to the current commit
- name: Checkout at current commit
uses: actions/checkout@v3

# Now you have access to both ABIs and can use them as needed
- name: Use the ABIs
run: |
node
Loading
Loading