Skip to content

Commit ff89e27

Browse files
committed
Ensure artifact_utils functions won't silently fail. Add git safe directory during macos signed artifact push
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent ad6f51c commit ff89e27

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/cli_release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ jobs:
135135
uses: ./.github/actions/gcloud_creds
136136
with:
137137
SERVICE_ACCOUNT_KEY: ${{ secrets.GH_RELEASE_SA_PEM_B64 }}
138+
- name: Add pwd to git safe dir
139+
run: |
140+
git config --global --add safe.directory `pwd`
138141
- name: Upload signed CLI
139142
env:
140143
REF: ${{ github.event.ref }}

ci/cli_upload_signed.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818

1919
repo_path=$(bazel info workspace)
2020

21+
set -ex
22+
2123
# shellcheck source=ci/artifact_utils.sh
2224
. "${repo_path}/ci/artifact_utils.sh"
2325

24-
set -ex
25-
2626
printenv
2727

2828
release_tag=${TAG_NAME##*/v}

0 commit comments

Comments
 (0)