diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9c294501..05ae117a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -310,19 +310,24 @@ jobs: ) fi - prev_credential_helper=$(git config get --global credential.helper || true) + prev_credential_helper=$(git config get --local credential.helper || true) if [[ -n "${prev_credential_helper}" ]]; then printf 'credential helper is already set (%s)\n' "${prev_credential_helper}" else - ( - set -x - git config --global credential.helper store - ) protocol="${GITHUB_SERVER_URL%%://*}" hostname="${GITHUB_SERVER_URL#*://}" - printf '%s\n' "${protocol}://${GITHUB_ACTOR}:${PUSH_TOKEN}@${hostname}" >~/.git-credentials + ( + set -x + git config --local credential.helper cache + ) + git credential approve <