diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts index ed73dc69cd..33008ce92e 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 7b0a0d7449..a8ff11c341 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