From fabce4cb3c57a4a89521cdaeea401bec06d4e543 Mon Sep 17 00:00:00 2001 From: Garry O'Donnell Date: Thu, 30 Jan 2025 16:11:21 +0000 Subject: [PATCH] fix: set git password in update action --- actions/update/action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/actions/update/action.yml b/actions/update/action.yml index 85e211f..111c012 100644 --- a/actions/update/action.yml +++ b/actions/update/action.yml @@ -46,8 +46,12 @@ runs: - name: Configure Git shell: bash run: | - git config user.name "${{ steps.app-token.outputs.app-slug }}[bot]" - git config user.email "${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com" + git config --local --unset credential.helper + git config --global --unset credential.helper + git config --system --unset credential.helper + git config --local user.name "${{ steps.app-token.outputs.app-slug }}[bot]" + git config --local user.email "${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com" + git config --local user.password "${{ steps.app-token.outputs.token }}" - name: Create commit id: commit