Skip to content

Commit

Permalink
fix: handle successful commands with no output
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Miller <[email protected]>
  • Loading branch information
Djelibeybi committed Sep 10, 2024
1 parent e11c38a commit 2a63fed
Show file tree
Hide file tree
Showing 6 changed files with 162 additions and 151 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/sanity-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,18 @@ jobs:
steps:
- uses: actions/checkout@v4

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

- name: Echo object storage namespace
- name: Echo IAM region list
id: echo-os-ns-get
run: |
echo "Output: ${{ steps.test-action-get-os-ns.outputs.output}}"
echo "Raw output: ${{ steps.test-action-get-os-ns.outputs.raw_output}}"
echo "Output: ${{ steps.test-action-iam-region-list.outputs.output}}"
echo "Raw output: ${{ steps.test-action-iam-region-list.outputs.raw_output}}"
- name: Test non-JSON output
id: test-non-json-output
Expand Down
20 changes: 13 additions & 7 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 2a63fed

Please sign in to comment.