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 3db2ed7 commit cb5df49
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions better-dependabot/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,8 @@ runs:
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 }}@|")
# Set the remote with the authenticated URL
git remote set-url origin $REPO_URL_WITH_TOKEN
# Now push using the authenticated URL
git push --set-upstream origin $BRANCH_NAME
git push $REPO_URL_WITH_TOKEN $BRANCH_NAME
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.token }}
Expand Down

0 comments on commit cb5df49

Please sign in to comment.