From 3e7bf94b34f5dc8d9bcd6615437f9c51a9af3155 Mon Sep 17 00:00:00 2001 From: Rustie Lin Date: Thu, 26 Sep 2024 19:47:06 -0700 Subject: [PATCH] [gha] fix cargo metadata syntax error (#14772) * [gha] fix cargo metadata syntax error * [gha] cargo metadata uploader uses gcloud storage --- .github/workflows/cargo-metadata-upload.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cargo-metadata-upload.yaml b/.github/workflows/cargo-metadata-upload.yaml index 3b92aa1ed5388..81c702e9c9366 100644 --- a/.github/workflows/cargo-metadata-upload.yaml +++ b/.github/workflows/cargo-metadata-upload.yaml @@ -20,7 +20,7 @@ jobs: with: workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }} service_account: ${{ secrets.GCP_SERVICE_ACCOUNT_EMAIL }} - - uses: Generate and upload Cargo metadata - shell: bash run: | - cargo metadata --all-features | gsutil cp - gs://aptos-core-cargo-metadata-public/metadata-${{ github.sha }}.json + set -ex + cargo metadata --all-features | gcloud storage cp - gs://aptos-core-cargo-metadata-public/metadata-${{ github.sha }}.json