From dfa2f52415cd24be090e7fb7f41b5055c331686b Mon Sep 17 00:00:00 2001 From: Yehonal Date: Thu, 28 Mar 2024 13:48:13 +0100 Subject: [PATCH] fix --- better-dependabot/action.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/better-dependabot/action.yml b/better-dependabot/action.yml index 8626f77..fa0e1bb 100644 --- a/better-dependabot/action.yml +++ b/better-dependabot/action.yml @@ -124,10 +124,7 @@ runs: git config --global user.email 'github-actions[bot]@users.noreply.github.com' git add --all git commit -m "Update dependencies" - # Construct the repository URL with the token for authentication - REPO_URL_WITH_TOKEN=$(echo "${{ github.server_url }}/${{ github.repository }}" | sed -e "s|https://|https://x-access-token:${{ inputs.token }}@|") - # Now push using the authenticated URL - git push $REPO_URL_WITH_TOKEN $BRANCH_NAME + git push https://${{ inputs.token }}@github.com/${{ github.repository }} $BRANCH_NAME shell: bash env: GITHUB_TOKEN: ${{ inputs.token }}