fix: try fix empty outputs
[skip ci]
This commit is contained in:
parent
ee1e8c079e
commit
f69ddbf398
2 changed files with 9 additions and 16 deletions
6
.github/actions/clean_up/action.yaml
vendored
6
.github/actions/clean_up/action.yaml
vendored
|
|
@ -167,9 +167,11 @@ runs:
|
|||
if: ${{ inputs.list_only != 'true' }}
|
||||
run: |
|
||||
echo "::group::delete PostgreSQL Flex resources"
|
||||
set -e
|
||||
stackit auth activate-service-account --service-account-key-path .svc_acc.json
|
||||
for s in $(stackit --verbosity ${{ inputs.log_level }} --project-id ${{ inputs.project_id }} postgresflex 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 }} postgresflex instance delete "$s" --force; done
|
||||
for s in $(stackit --verbosity ${{ inputs.log_level }} --project-id ${{ inputs.project_id }} postgresflex 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 }} postgresflex instance delete "$s" --force;
|
||||
done
|
||||
echo "::endgroup::"
|
||||
shell: bash
|
||||
|
||||
|
|
|
|||
19
.github/workflows/tf-acc-test.yaml
vendored
19
.github/workflows/tf-acc-test.yaml
vendored
|
|
@ -44,16 +44,9 @@ jobs:
|
|||
continue-on-error: true
|
||||
run: |
|
||||
time=$(date --rfc-3339=ns)
|
||||
echo "start_time=$time"
|
||||
echo "start_time=$time" >> ${GITHUB_ENV}
|
||||
echo "start_time=$time" >> ${GITHUB_OUTPUT}
|
||||
start=$(date +%s%N)
|
||||
echo "start=$start"
|
||||
echo "start=$start" >> ${GITHUB_ENV}
|
||||
|
||||
- name: debug
|
||||
shell: bash
|
||||
run: |
|
||||
echo "start_time: ${{ steps.start_time.outputs.start_time }}"
|
||||
echo "start=$start" >> ${GITHUB_OUTPUT}
|
||||
|
||||
- name: Notify
|
||||
uses: ./.github/actions/notify
|
||||
|
|
@ -107,15 +100,13 @@ jobs:
|
|||
continue-on-error: true
|
||||
run: |
|
||||
set -e
|
||||
echo "end_time=$(date --rfc-3339=ns)" >> ${GITHUB_ENV}
|
||||
echo "end_time=$(date --rfc-3339=ns)" >> ${GITHUB_OUTPUT}
|
||||
end=$(date +%s%N)
|
||||
echo "end=${end}" >> ${GITHUB_ENV}
|
||||
echo "end=${end}" >> ${GITHUB_OUTPUT}
|
||||
start=${{ steps.start_time.outputs.start }}
|
||||
diff=$((end-start))
|
||||
echo "diff=${diff}"
|
||||
duration=$(printf "%s.%s" "${diff:0: -9}" "${diff: -9:3}")
|
||||
echo "duration=${duration}"
|
||||
echo "duration=${duration}" >> ${GITHUB_ENV}
|
||||
echo "duration=${duration}" >> ${GITHUB_OUTPUT}
|
||||
|
||||
- name: Notify
|
||||
uses: ./.github/actions/notify
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue