If succesful build - git push
I'd like to push a new commit to github via appveyor.yml in case it's built succesfully. How can I do this?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 27 Jan, 2015 05:19 PM
You can put your git commands under
on_success
section:But I guess your main question is how to authenticate?
2 Posted by Maria on 27 Jan, 2015 06:26 PM
Indeed it is - via ssh?
(my apologies for asking twice)
Support Staff 3 Posted by Feodor Fitsner on 28 Jan, 2015 01:29 AM
Here you are: http://www.appveyor.com/docs/how-to/git-push
4 Posted by Maria on 28 Jan, 2015 04:55 PM
That's really useful, many thanks! :D
5 Posted by María on 03 Feb, 2015 03:48 PM
Hi Feodor,
While using this feature I get this message:
And can't guess what's going wrong. Can you help me?
Support Staff 6 Posted by Feodor Fitsner on 03 Feb, 2015 04:29 PM
Hi Maria,
Update git remote to use https protocol.
-Feodor
7 Posted by Maria on 04 Feb, 2015 10:05 AM
Hi Feodor,
But origin remote is already configured by the feature, isn't it?
I can update it - but expected it to work straight.
Thanks,
Maria
Support Staff 8 Posted by Feodor Fitsner on 04 Feb, 2015 03:07 PM
There is "git" protocol by default but you need https.
Also, make sure you have "[skip ci]" in your commit message to avoid creating an endless loop of builds, because when you push to the repo you cloned from a new build will be started. "[skip ci]" prevents that: http://www.appveyor.com/docs/how-to/skip-build
-Feodor
9 Posted by Maria on 04 Feb, 2015 03:44 PM
Yep - that's what I've done - everything is working perfectly, I was just wondering.
skip ci has proved to be really useful indeed ^^
Support Staff 10 Posted by Feodor Fitsner on 04 Feb, 2015 05:41 PM
Great, thanks for the update!
11 Posted by joymon on 17 Jan, 2017 02:28 AM
Seems the url below is not working. Should I need quotes for the message "[skip ci]"
http://www.appveyor.com/docs/how-to/skip-build
Support Staff 12 Posted by Feodor Fitsner on 17 Jan, 2017 02:29 AM
No, just
[skip ci]
anywhere in the messageIlya Finkelshteyn closed this discussion on 25 Aug, 2018 02:14 AM.