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
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