fix: try fix empty outputs
[skip ci]
This commit is contained in:
parent
f69ddbf398
commit
e48a6b84bb
1 changed files with 4 additions and 2 deletions
6
.github/actions/clean_up/action.yaml
vendored
6
.github/actions/clean_up/action.yaml
vendored
|
|
@ -150,9 +150,11 @@ runs:
|
||||||
if: ${{ inputs.list_only != 'true' }}
|
if: ${{ inputs.list_only != 'true' }}
|
||||||
run: |
|
run: |
|
||||||
echo "::group::delete SQL Server Flex resources"
|
echo "::group::delete SQL Server Flex resources"
|
||||||
set -e
|
|
||||||
stackit --verbosity ${{ inputs.log_level }} auth activate-service-account --service-account-key-path .svc_acc.json
|
stackit --verbosity ${{ inputs.log_level }} auth activate-service-account --service-account-key-path .svc_acc.json
|
||||||
for s in $(stackit --verbosity ${{ inputs.log_level }} --project-id ${{ inputs.project_id }} beta sqlserverflex instance list --output-format json | jq -r '.[] | select(.name | startswith("${{ inputs.tf_resource_prefix }}")) | .id'); do stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} beta sqlserverflex instance delete $s; done
|
for s in $(stackit --verbosity ${{ inputs.log_level }} --project-id ${{ inputs.project_id }} beta sqlserverflex instance list --output-format json | jq -r '.[] | select(.name | startswith("${{ inputs.tf_resource_prefix }}")) | .id');
|
||||||
|
do
|
||||||
|
stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} beta sqlserverflex instance delete $s;
|
||||||
|
done
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue