We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee5b7d1 commit 997f0e1Copy full SHA for 997f0e1
.github/workflows/windos-fix.yml
@@ -37,10 +37,12 @@ jobs:
37
38
- name: Verify the action took less than 1 minute
39
run: |
40
- $timestamp = Get-Content -Path "timestamp.txt"
+ $timestampContent = Get-Content -Path "timestamp.txt"
41
+ $timestamp = [DateTime]::Parse($timestampContent)
42
$now = Get-Date
- $diff = $now - $timestamp
43
- if ($diff.TotalMinutes -gt 1) {
+
44
+ $diff = New-TimeSpan -Start $timestamp -End $now
45
+ if ($diff.Minutes -gt 1) {
46
throw "The action took longer than 1 minute to run"
47
}
48
0 commit comments