1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

ci: fix uploading canary (#25715)

If a newer version was available the script was exiting with code 1.
This commit is contained in:
Bartek Iwańczuk 2024-09-18 21:17:12 +01:00 committed by GitHub
parent 5057f58145
commit 315baeb50a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View file

@ -818,6 +818,8 @@ const ci = {
"if [ $? -eq 0 ]; then",
" echo ${{ github.sha }} > canary-latest.txt",
' gsutil -h "Cache-Control: no-cache" cp canary-latest.txt gs://dl.deno.land/canary-$(rustc -vV | sed -n "s|host: ||p")-latest.txt',
"else",
' echo "Skipping upload, because newer canary version is already available"',
"fi",
].join("\n"),
},
@ -1101,6 +1103,8 @@ const ci = {
"if [ $? -eq 0]; then",
" echo ${{ github.sha }} > canary-latest.txt",
' gsutil -h "Cache-Control: no-cache" cp canary-latest.txt gs://dl.deno.land/canary-latest.txt',
"else",
' echo "Skipping upload, because newer canary version is already available"',
"fi",
].join("\n"),
},

View file

@ -491,6 +491,8 @@ jobs:
if [ $? -eq 0 ]; then
echo ${{ github.sha }} > canary-latest.txt
gsutil -h "Cache-Control: no-cache" cp canary-latest.txt gs://dl.deno.land/canary-$(rustc -vV | sed -n "s|host: ||p")-latest.txt
else
echo "Skipping upload, because newer canary version is already available"
fi
- name: Autobahn testsuite
if: |-
@ -699,4 +701,6 @@ jobs:
if [ $? -eq 0]; then
echo ${{ github.sha }} > canary-latest.txt
gsutil -h "Cache-Control: no-cache" cp canary-latest.txt gs://dl.deno.land/canary-latest.txt
else
echo "Skipping upload, because newer canary version is already available"
fi