Skip to content

Commit

Permalink
Fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
dsame committed Nov 9, 2023
1 parent ee5b7d1 commit 997f0e1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/windos-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ jobs:

- name: Verify the action took less than 1 minute
run: |
$timestamp = Get-Content -Path "timestamp.txt"
$timestampContent = Get-Content -Path "timestamp.txt"
$timestamp = [DateTime]::Parse($timestampContent)
$now = Get-Date
$diff = $now - $timestamp
if ($diff.TotalMinutes -gt 1) {
$diff = New-TimeSpan -Start $timestamp -End $now
if ($diff.Minutes -gt 1) {
throw "The action took longer than 1 minute to run"
}
Expand Down

0 comments on commit 997f0e1

Please sign in to comment.