Write files back to GitHub repo

Hi,

How in TeamCity can I write a file(s) back to the Git repo? And in doing this, not trigger another build?

I use the latest version of TeamCity and GitHub Enterprise cloud.

Thanks!

0
2 comments
Avatar
Fedor Rumyantsev
Hello Gurdip,

In order to make a commit to Git repo you may just run git commands in the build (if you use SSH auth, you may find this feature helpful: https://www.jetbrains.com/help/teamcity/ssh-agent.html). 

VCS trigger supports trigger rules (https://www.jetbrains.com/help/teamcity/configuring-vcs-triggers.html#vcs-trigger-rules-1) - these, for instance, may help to ignore commits with a specific comment which you could use for your auto-generated commits. 

Please let me know if this helps.
1

Funnily enough, what I discovered after raising this thread!

On the comment requirement, it will just be this:

-:comment=minor:**

To NOT trigger a build on the comment = minor.

 

I think I should be good to go now!

0

Please sign in to leave a comment.