Open rdehuyss opened 3 years ago
As a workaround, you can manually set the remote
parameter with your username and access token: https://<gh_username>:<gh_access_token>@github.com:repo
.
Altogether, it's something like this with the code you provided:
- name: push updated readme
image: appleboy/drone-git-push
settings:
branch: master
remote:
from_secret: GH_REPO
force: false
commit: true
commit_message: "Update readme to new version [CI SKIP]"
author_name: drone-bot
author_email: drone-bot@jobrunr.io
Alternatively, if you want to use the ssh key instead of the access token, you will still have to set the remote address by hand. Something like this works for me:
- name: push updated readme
image: appleboy/drone-git-push
settings:
branch: master
remote_name: origin
remote: git@github.com:<repo>
ssh_key:
from_secret: GITHUB_SSH_KEY
force: false
commit: true
commit_message: "Update readme to new version [CI SKIP]"
author_name: drone-bot
author_email: drone-bot@jobrunr.io
Thanks, I'll try it and report back.
Hi
I am having the same issue, if I add an origin
in the settings I get the following error:
+ git add --all
+ git diff-index --quiet HEAD --ignore-submodules
+ git remote add origin git@github.com:<repo>
error: remote origin already exists.
exit status 3
This is a follow-up for issue #43 . I just tried with a new release - still have some issues.
You can find drone.yml here: https://github.com/jobrunr/jobrunr/blob/master/.drone.yml.
What I try to do: update the Readme with the latest version (so the tag) How do I try it:
The output for step
push updated readme
:Any idea on how to solve this?
Thanks again, Ronald