mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 13:00:36 -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",
|
"if [ $? -eq 0 ]; then",
|
||||||
" echo ${{ github.sha }} > canary-latest.txt",
|
" 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',
|
' 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",
|
"fi",
|
||||||
].join("\n"),
|
].join("\n"),
|
||||||
},
|
},
|
||||||
|
@ -1101,6 +1103,8 @@ const ci = {
|
||||||
"if [ $? -eq 0]; then",
|
"if [ $? -eq 0]; then",
|
||||||
" echo ${{ github.sha }} > canary-latest.txt",
|
" echo ${{ github.sha }} > canary-latest.txt",
|
||||||
' gsutil -h "Cache-Control: no-cache" cp canary-latest.txt gs://dl.deno.land/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",
|
"fi",
|
||||||
].join("\n"),
|
].join("\n"),
|
||||||
},
|
},
|
||||||
|
|
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -491,6 +491,8 @@ jobs:
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo ${{ github.sha }} > canary-latest.txt
|
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
|
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
|
fi
|
||||||
- name: Autobahn testsuite
|
- name: Autobahn testsuite
|
||||||
if: |-
|
if: |-
|
||||||
|
@ -699,4 +701,6 @@ jobs:
|
||||||
if [ $? -eq 0]; then
|
if [ $? -eq 0]; then
|
||||||
echo ${{ github.sha }} > canary-latest.txt
|
echo ${{ github.sha }} > canary-latest.txt
|
||||||
gsutil -h "Cache-Control: no-cache" cp canary-latest.txt gs://dl.deno.land/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
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue