Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehonal authored Mar 28, 2024
1 parent cb5df49 commit dfa2f52
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions better-dependabot/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit dfa2f52

Please sign in to comment.