Skip to content

Commit 5f07e73

Browse files
committed
correctly calculating workflow time
1 parent abb76c3 commit 5f07e73

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/api-compat-verification.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ permissions:
1111
id-token: write
1212
contents: read
1313

14-
env:
15-
WORKFLOW_START_TIME: ${{ github.event.created_at && github.event.created_at || github.run_id }}
16-
1714
jobs:
1815
api-compat-verification:
1916
runs-on: ubuntu-latest
2017
steps:
2118
- uses: actions/checkout@v2
19+
- name: Set start time
20+
run: echo "WORKFLOW_START_TIME=$(date +%s)" >> $GITHUB_ENV
2221
- name: Check for API compatibility
2322
if: ${{ !contains(github.event.pull_request.labels.*.name, 'acknowledge-api-break') }}
2423
run: |

0 commit comments

Comments
 (0)