Skip to content

Commit 2a63fed

Browse files
committed
fix: handle successful commands with no output
Signed-off-by: Avi Miller <[email protected]>
1 parent e11c38a commit 2a63fed

File tree

6 files changed

+162
-151
lines changed

6 files changed

+162
-151
lines changed

.github/workflows/sanity-test.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,18 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v4
2727

28-
- name: Get object storage namespace
29-
id: test-action-get-os-ns
28+
- name: Get IAM region list
29+
id: test-action-iam-region-list
3030
uses: ./
3131
with:
32-
command: 'iam compartment list --compartment-id-in-subtree=true'
33-
query: "data[?name=='github-actions'].id"
32+
command: iam region list
3433
silent: false
3534

36-
- name: Echo object storage namespace
35+
- name: Echo IAM region list
3736
id: echo-os-ns-get
3837
run: |
39-
echo "Output: ${{ steps.test-action-get-os-ns.outputs.output}}"
40-
echo "Raw output: ${{ steps.test-action-get-os-ns.outputs.raw_output}}"
38+
echo "Output: ${{ steps.test-action-iam-region-list.outputs.output}}"
39+
echo "Raw output: ${{ steps.test-action-iam-region-list.outputs.raw_output}}"
4140
4241
- name: Test non-JSON output
4342
id: test-non-json-output

dist/index.js

Lines changed: 13 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)