fix: handle non-JSON responses #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sanity test of run-oci-cli-command | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
test-action: | |
name: Sanity test run-oci-cli-command action | |
runs-on: ubuntu-latest | |
env: | |
OCI_CLI_USER: ${{ secrets.OCI_CLI_USER }} | |
OCI_CLI_TENANCY: ${{ secrets.OCI_CLI_TENANCY }} | |
OCI_CLI_FINGERPRINT: ${{ secrets.OCI_CLI_FINGERPRINT }} | |
OCI_CLI_KEY_CONTENT: ${{ secrets.OCI_CLI_KEY_CONTENT }} | |
OCI_CLI_REGION: ${{ secrets.OCI_CLI_REGION }} | |
steps: | |
- name: Checkout | |
id: checkout | |
uses: actions/checkout@v4 | |
- name: Get object storage namespace | |
id: test-action-get-os-ns | |
uses: ./ | |
with: | |
command: os ns get | |
- name: Output object storage namespace | |
id: output-os-ns | |
run: echo "${{ steps.test-action-get-os-ns.outputs.output }}" | |
- name: Test non-JSON output | |
id: test-non-json-output | |
uses: ./ | |
with: | |
command: --output=table iam region list | |
- name: Check non-JSON outputs | |
id: show-non-json-output | |
run: | | |
echo "${{ steps.test-non-json-output.outputs.raw_output }}" | |
echo "${{ steps.test-non-json-output.outputs.output }}" |