From ff89e27ad314b2a2c6f44a95964107774bbb6224 Mon Sep 17 00:00:00 2001 From: Dom Del Nano Date: Wed, 4 Sep 2024 15:31:28 +0000 Subject: [PATCH] Ensure artifact_utils functions won't silently fail. Add git safe directory during macos signed artifact push Signed-off-by: Dom Del Nano --- .github/workflows/cli_release.yaml | 3 +++ ci/cli_upload_signed.sh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cli_release.yaml b/.github/workflows/cli_release.yaml index dfbfa653454..aaa3bc935f6 100644 --- a/.github/workflows/cli_release.yaml +++ b/.github/workflows/cli_release.yaml @@ -135,6 +135,9 @@ jobs: uses: ./.github/actions/gcloud_creds with: SERVICE_ACCOUNT_KEY: ${{ secrets.GH_RELEASE_SA_PEM_B64 }} + - name: Add pwd to git safe dir + run: | + git config --global --add safe.directory `pwd` - name: Upload signed CLI env: REF: ${{ github.event.ref }} diff --git a/ci/cli_upload_signed.sh b/ci/cli_upload_signed.sh index 5f56d5e4cce..8aef812b828 100755 --- a/ci/cli_upload_signed.sh +++ b/ci/cli_upload_signed.sh @@ -18,11 +18,11 @@ repo_path=$(bazel info workspace) +set -ex + # shellcheck source=ci/artifact_utils.sh . "${repo_path}/ci/artifact_utils.sh" -set -ex - printenv release_tag=${TAG_NAME##*/v}