File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -158,9 +158,9 @@ jobs:
158158 if ($LASTEXITCODE -ne 0) { throw "Failed to generate new appcast" }
159159
160160 # Upload the new appcast and signature to GCS.
161- & gsutil cp $newAppCastPath $env:APPCAST_GCS_URI
161+ & gsutil -h "Cache-Control:no-cache,max-age=0" cp $newAppCastPath $env:APPCAST_GCS_URI
162162 if ($LASTEXITCODE -ne 0) { throw "Failed to upload new appcast" }
163- & gsutil cp $newAppCastSignaturePath $env:APPCAST_SIGNATURE_GCS_URI
163+ & gsutil -h "Cache-Control:no-cache,max-age=0" cp $newAppCastSignaturePath $env:APPCAST_SIGNATURE_GCS_URI
164164 if ($LASTEXITCODE -ne 0) { throw "Failed to upload new appcast signature" }
165165 env :
166166 APPCAST_GCS_URI : gs://releases.coder.com/coder-desktop/windows/appcast.xml
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ param (
2727 [string ] $channel ,
2828
2929 [Parameter (Mandatory = $false )]
30- [string ] $pubDate = (Get-Date ).ToUniversalTime().ToString(" ddd, dd MMM yyyy HH:mm:ss +0000" ),
30+ [ValidatePattern (" ^\w{3}, \d{2} \w{3} \d{4} \d{2}:\d{2}:\d{2} \+00:00$" )]
31+ [string ] $pubDate = (Get-Date ).ToUniversalTime().ToString(" ddd, dd MMM yyyy HH:mm:ss +00:00" ),
3132
3233 [Parameter (Mandatory = $true )]
3334 [ValidateScript ({ Test-Path $_ })]
You can’t perform that action at this time.
0 commit comments