Skip to content

Commit

Permalink
Merge branch 'main' into Atharva1723-versionparam
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikebbers authored Oct 14, 2024
2 parents 553e5e6 + 7e04603 commit 9fc531a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ The GitHub action takes the following inputs:
If set to `true`, the action will install a mirror node in addition to the main node.
The mirror node can be accessed at `localhost:8080`.

| Input | Description | Required | Default |
|----------------|-------------------------------|----------|---------|
| `installRelay` | Install JSON-RPC-Relay | false | false |

- `installRelay`: A boolean parameter that is `false` by default.
If set to `true`, the action will install the JSON-RPC-Relay as part of the setup process. This allows you to easily add a relay to your Hedera network setup. The relay is installed using the `solo relay deploy` command.

## Outputs

The GitHub action outputs the following information:
Expand Down
14 changes: 14 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ inputs:
description: "Port for Mirror Node"
required: false
default: "8080"
installRelay:
description: 'Install JSON-RPC-Relay'
required: false
default: false
type: boolean
outputs:
accountId:
description: "Hedera account id for a new account"
Expand Down Expand Up @@ -83,6 +88,15 @@ runs:
solo mirror-node deploy
kubectl port-forward svc/fullstack-deployment-hedera-explorer -n solo-test ${{ inputs.mirrorNodePort }}:80 &
- name: Deploy JSON-RPC-Relay
if: ${{ inputs.installRelay == 'true' }}
shell: bash
run: |
echo "Installing JSON-RPC-Relay..."
solo relay deploy
echo "JSON-RPC-Relay installed successfully"
- name: Create account
id: create-account
shell: bash
Expand Down

0 comments on commit 9fc531a

Please # to comment.