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:
parent
5057f58145
commit
315baeb50a
2 changed files with 8 additions and 0 deletions
4
.github/workflows/ci.generate.ts
vendored
4
.github/workflows/ci.generate.ts
vendored
|
@ -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"),
|
||||
},
|
||||
|
|
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue