Skip to content

Commit

Permalink
Cast double to inte64 for windows start/endtime.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Apr 12, 2024
1 parent 782f84b commit 4faeb36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ runs:
id: start_time_win
if: ${{ inputs.os == 'windows' }}
run: |
$currentTime = Get-Date -UFormat "%s"
$currentTime = [int][double]::Parse((Get-Date -UFormat "%s"))
Write-Output "start_time=$currentTime" | Out-File -FilePath $Env:GITHUB_OUTPUT -Append
Write-Output "Start time: "
Write-Output "$currentTime"
Expand All @@ -246,7 +246,7 @@ runs:
id: end_time_win
if: ${{ inputs.os == 'windows' }}
run: |
$currentTime = Get-Date -UFormat "%s"
$currentTime = [int][double]::Parse((Get-Date -UFormat "%s"))
Write-Output "end_time=$currentTime" | Out-File -FilePath $Env:GITHUB_OUTPUT -Append
Write-Output "End time: "
Write-Output "$currentTime"
Expand Down Expand Up @@ -331,8 +331,8 @@ runs:
"branch_name" = "${{ github.ref_name }}"
"bucket_name" = "${{ inputs.gcs_bucket_name }}"
"workflow_name" = "${{ inputs.workflow_name }}"
"start_time" = "${{ steps.start_time_win.outputs.start_time }}"
"end_time" = "${{ steps.end_time_win.outputs.end_time }}"
"start_time" = ${{ steps.start_time_win.outputs.start_time }}
"end_time" = ${{ steps.end_time_win.outputs.end_time }}
} | ConvertTo-Json)
## Mac/Linux Cleanup Steps
Expand Down

0 comments on commit 4faeb36

Please sign in to comment.