Skip to content

Commit

Permalink
ci: fix uploading canary (#25715)
Browse files Browse the repository at this point in the history
If a newer version was available the script was exiting with code 1.
  • Loading branch information
bartlomieju authored Sep 18, 2024
1 parent 5057f58 commit 315baeb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
},
Expand Down Expand Up @@ -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"),
},
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |-
Expand Down Expand Up @@ -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

0 comments on commit 315baeb

Please sign in to comment.