summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-09-18 21:17:12 +0100
committerGitHub <noreply@github.com>2024-09-18 20:17:12 +0000
commit315baeb50af0ff66961b36e0fcfc78f8dacb9198 (patch)
treed8053ac9e17ba82d6c657a50ec6efcf2e1c8ebe5 /.github
parent5057f58145ab47276fdc4392619888e37aea8864 (diff)
ci: fix uploading canary (#25715)
If a newer version was available the script was exiting with code 1.
Diffstat (limited to '.github')
-rwxr-xr-x.github/workflows/ci.generate.ts4
-rw-r--r--.github/workflows/ci.yml4
2 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts
index ed73dc69c..33008ce92 100755
--- a/.github/workflows/ci.generate.ts
+++ b/.github/workflows/ci.generate.ts
@@ -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"),
},
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7b0a0d744..a8ff11c34 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -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