diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-09-19 14:54:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-19 13:54:59 +0000 |
commit | dcc95112f7a53d94b355cd0cfaedbcee648bfe7f (patch) | |
tree | b35b201503bf34bf4fe5093c477ff7a795495955 /.github/workflows/ci.generate.ts | |
parent | e97f00f6f624d11ce7f37796bd65e52c473093b6 (diff) |
ci: revert changed to canary uploads (#25733)
All these changes made CI fail consistently with random exit code 1
after successful upload.
Diffstat (limited to '.github/workflows/ci.generate.ts')
-rwxr-xr-x | .github/workflows/ci.generate.ts | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts index 835d7acbf..8cc57619b 100755 --- a/.github/workflows/ci.generate.ts +++ b/.github/workflows/ci.generate.ts @@ -158,7 +158,7 @@ const cloneRepoStep = [{ // Use depth > 1, because sometimes we need to rebuild main and if // other commits have landed it will become impossible to rebuild if // the checkout is too shallow. - "fetch-depth": 50, + "fetch-depth": 5, submodules: false, }, }]; @@ -813,14 +813,8 @@ const ci = { ].join("\n"), run: [ 'gsutil -h "Cache-Control: public, max-age=3600" cp ./target/release/*.zip gs://dl.deno.land/canary/$(git rev-parse HEAD)/', - 'latest_canary_hash=$(gsutil cat gs://dl.deno.land/canary-$(rustc -vV | sed -n "s|host: ||p")-latest.txt)', - "git cat-file -e $latest_canary_hash", - "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", + "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', ].join("\n"), }, { @@ -1087,7 +1081,6 @@ const ci = { if: "github.repository == 'denoland/deno' && github.ref == 'refs/heads/main'", steps: [ - ...cloneRepoStep, authenticateWithGoogleCloud, { name: "Setup gcloud", @@ -1099,14 +1092,8 @@ const ci = { { name: "Upload canary version file to dl.deno.land", run: [ - "latest_canary_hash=$(gsutil cat gs://dl.deno.land/canary-latest.txt)", - "git cat-file -e $latest_canary_hash", - "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", + "echo ${{ github.sha }} > canary-latest.txt", + 'gsutil -h "Cache-Control: no-cache" cp canary-latest.txt gs://dl.deno.land/canary-latest.txt', ].join("\n"), }, ], |