I am trying to update my git repo during the GoCD build. That means that because Go sees another change it triggers another build. Is it possible to stop the re-triggering of the build?
Background: I am building and publishing npm packages and I want to automatically increase the prerelease version so I don't have to remember it.
My pipeline looks essentially like this:
npm version prerelease --no-git-tag-version
npm publish
git add package.json
git commit -m "Bump prerelease version"
git push origin
This will update the version in git if the publish succeeds but also triggers another build since Go is polling.