Skip to content

Commit 35be153

Browse files
Merge pull request #28 from DefangLabs/jordan/verbose-mode
add support for verbose mode
2 parents 5c52b1e + 53da036 commit 35be153

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
cwd: "./test"
4848
compose-files: ""
4949
mode: "staging"
50+
verbose: true
5051
command: "compose up --dry-run --project-name github-action-test"
5152

5253
- name: Teardown

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ jobs:
135135
mode: "staging"
136136
provider: "aws"
137137
command: "compose up"
138+
verbose: true
138139
env:
139140
API_KEY: ${{ secrets.API_KEY }}
140141
DB_CONNECTION_STRING: ${{ secrets.DB_CONNECTION_STRING }}

action.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ inputs:
3434
description: "The command to run."
3535
required: false
3636
default: "compose up"
37+
verbose:
38+
description: "Enable verbose output for debugging."
39+
required: false
40+
default: "false"
3741

3842
runs:
3943
using: "composite"
@@ -91,6 +95,10 @@ runs:
9195
params+=("--mode=${{ inputs['mode'] }}")
9296
fi
9397
98+
if [[ "${{ inputs['verbose'] }}" == "true" ]]; then
99+
params+=("--verbose")
100+
fi
101+
94102
echo defang $COMMAND "${params[@]}"
95103
defang $COMMAND "${params[@]}"
96104
env:

0 commit comments

Comments
 (0)