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 var to use custom nitro-contracts branch #24

Merged
merged 2 commits into from
Apr 24, 2024
Merged
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
11 changes: 10 additions & 1 deletion run-nitro-test-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ inputs:
required: false
default: 'false'
description: 'Whether to start an L3 node in addition to the L2 node'
nitro-contracts-branch:
required: false
default: 'main'
description: 'The nitro-contracts branch to use'
token-bridge-branch:
required: false
default: 'main'
description: 'The token-bridge-contracts branch to use'
runs:
using: 'composite'
steps:
Expand All @@ -43,7 +51,8 @@ runs:
# See https://stackoverflow.com/a/72203688 for more info
run: |
cd nitro-testnode
./test-node.bash --init ${{ inputs.no-simple == 'true' && '--no-simple' || '' }} \
NITRO_CONTRACTS_BRANCH=${{ inputs.nitro-contracts-branch }} TOKEN_BRIDGE_BRANCH=${{ inputs.token-bridge-branch }} \
./test-node.bash --init ${{ inputs.no-simple == 'true' && '--no-simple' || '' }} \
${{ inputs.l3-node == 'true' && '--l3node' || '' }} \
${{ inputs.no-token-bridge == 'true' && '--no-tokenbridge' || '--tokenbridge' }} \
${{ inputs.l3-node == 'true' && inputs.no-l3-token-bridge != 'true' && '--l3-token-bridge' || '' }} \
Expand Down
Loading