Skip to content

Commit 2337354

Browse files
committed
always calculate duration
1 parent d0f6209 commit 2337354

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/codebuild-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
fi
7676
- name: Calculate duration
7777
id: end
78+
if: always()
7879
run: |
7980
printf -v now '%(%s)T'
8081
duration=$(( now - ${{ steps.start.outputs.timestamp }} ))
@@ -185,6 +186,7 @@ jobs:
185186
}
186187
- name: Calculate duration
187188
id: end
189+
if: always()
188190
run: |
189191
printf -v now '%(%s)T'
190192
duration=$(( now - ${{ steps.start.outputs.timestamp }} ))

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
./gradlew -Ptest.java.version=${{ matrix.java-version }} jvmTest --stacktrace
6060
- name: Calculate duration
6161
id: end
62+
if: always()
6263
run: |
6364
printf -v now '%(%s)T'
6465
duration=$(( now - ${{ steps.start.outputs.timestamp }} ))
@@ -141,6 +142,7 @@ jobs:
141142
./gradlew testAllProtocols
142143
- name: Calculate duration
143144
id: end
145+
if: always()
144146
shell: bash
145147
run: |
146148
now=$(date +%s)

0 commit comments

Comments
 (0)