Hi I'm currently having some trouble setting up a pipeline when I'm merging a feature branche in my develop branch and generating a Changelog.
Current situation
- Pipeline is being triggerd on every push to develop.
Wished situation
- Trigger pipeline only when I merge a feature branch to develop.
- Generate changelog
- Push generated changelog to develop
- Don't run pipeline
Right now my pipeline is being stuck in a loop since I'm pushing my generate changelog to develop after the merge.
Current bitbucket-pipelines.yml
pipelines:
branches:
develop:
- step:
caches:
- node
script: # Modify the commands below to build your repository
- git config user.email "my_email.com"
- git config user.name "my_name"
- npm install
- npm run release
- git push --follow-tags origin develop
I hope you guys can help me out!