chore: modify test action
[skip ci]
This commit is contained in:
parent
9536b51945
commit
722d56248f
1 changed files with 8 additions and 1 deletions
9
.github/workflows/tf-acc-test.yaml
vendored
9
.github/workflows/tf-acc-test.yaml
vendored
|
|
@ -44,6 +44,7 @@ jobs:
|
|||
id: start_time
|
||||
run: |
|
||||
echo "time=$(date --rfc-3339=ns)" >> ${GITHUB_ENV}
|
||||
echo "start=$(date +%s%N)" >> ${GITHUB_ENV}
|
||||
|
||||
- name: Notify
|
||||
uses: ./.github/actions/notify
|
||||
|
|
@ -94,6 +95,12 @@ jobs:
|
|||
id: end_time
|
||||
run: |
|
||||
echo "time=$(date --rfc-3339=ns)" >> ${GITHUB_ENV}
|
||||
end=$(date +%s%N)
|
||||
echo "end=${end}" >> ${GITHUB_ENV}
|
||||
start=${{ steps.start_time.outputs.start }}
|
||||
diff=$((end-start))
|
||||
duration=sprintf "%s.%s" "${diff:0: -9}" "${diff: -9:3}"
|
||||
echo "duration=${duration}" >> ${GITHUB_ENV}
|
||||
|
||||
- name: Notify
|
||||
uses: ./.github/actions/notify
|
||||
|
|
@ -101,7 +108,7 @@ jobs:
|
|||
webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }}
|
||||
title: "[END] Terraform Acceptance Tests"
|
||||
subtitle: "${{ forgejo.event_name }} on branch ${{ forgejo.ref }} with status: ${{ forgejo.event_name == 'workflow_dispatch' && steps.manual_run.outputs.status || steps.automatic_run.outputs.status }}"
|
||||
event_title: "run ended: ${{ steps.end_time.outputs.time }}"
|
||||
event_title: "run ended: ${{ steps.end_time.outputs.time }}, duration: ${{ steps.end_time.outputs.duration }} seconds"
|
||||
event_author: ${{ forgejo.actor }}
|
||||
event_body: "${{ forgejo.event_name == 'workflow_dispatch' && steps.manual_run.outputs.result || steps.automatic_run.outputs.result }}"
|
||||
event_number: ${{ forgejo.event.id }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue