Skip to content

Commit

Permalink
Contract cicd version bumps (#1091)
Browse files Browse the repository at this point in the history
* init

* plan

* Testing fetching most recent release files

* bumping pr path logic

* fetch release rename

* migrate_new_contract

* 2nd attempt echoing new releases

* Jobs with only using github script

* trying with github scripts v7

* Using release-downloader, attempting contract provider registration

* nonfunctional - apipromise silently kills process without a fuss

* path

* Fix conflicting dependencies

* Remove circular import

* remove redundant then

---------

Co-authored-by: Chris Taylor <forgetso86@gmail.com>
  • Loading branch information
HughParry and forgetso authored May 15, 2024
1 parent e73ab46 commit 2ef3da7
Show file tree
Hide file tree
Showing 8 changed files with 3,473 additions and 0 deletions.
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

0 comments on commit 2ef3da7

Please sign in to comment.