Skip to content

Commit

Permalink
add use_ark
Browse files Browse the repository at this point in the history
  • Loading branch information
tiero committed Dec 29, 2024
1 parent aa9a773 commit 7fc63ce
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ Run Nigiri Bitcoin in your Github Action

**Optional** Use --ln flag. Default `false`.

## `use_ark`

**Optional** Use --ark flag. Default `false`.

## Usage

```yml
Expand All @@ -37,3 +41,12 @@ Run Nigiri Bitcoin in your Github Action
use_ln: true
```
### start with ARK network
```yml
name: Run Nigiri
uses: vulpemventures/nigiri-github-action@v1
with:
use_ark: true
```
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ inputs:
description: "use --ln flag"
required: false
default: "false"
use_ark:
description: "use --ark flag"
required: false
default: "false"
outputs: {}
runs:
using: "node12"
Expand Down
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ async function run() {
let version = core.getInput('version');
let useLiquid = core.getInput('use_liquid');
let useLn = core.getInput('use_ln');
let useArk = core.getInput('use_ark');
let repository = core.getInput('repository_url');


Expand Down Expand Up @@ -59,6 +60,9 @@ async function run() {
if (useLn === "true") {
args.push("--ln");
}
if (useArk === "true") {
args.push("--ark");
}
await exec.exec(filePath, args);

} catch (error) {
Expand Down

0 comments on commit 7fc63ce

Please sign in to comment.