Hello, I am currently making a pipeline that runs RectorPHP on my code, makes the necessary fixes by itself and commits those changes back to the repository.
I have configured a merge check on my pull requests that the build must pass, and when I push back to my repostory, I commit with [skip-ci] so the pipeline doesn't loop again and again. Because of this, the last commit on the branch doesn't run the pipeline, so no builds are run and my merge condition of "1+ build passed" is of course unchecked.
The build has passed before, but it isn't reflected on the pull request because of that last commit. What would be the best way to approach this if I want that merge check to reflect that Rector has run successfully and I am able to merge? Thanks for your time
definitions:
caches:
rector-cache:
key:
files:
- "composer.lock"
path: ./var/cache/rector
pipelines:
pull-requests:
'**':
- step:
name: Install composer dependencies
script:
- composer install --no-progress --ansi
caches:
- composer
artifacts:
- build/**
- vendor/**
- composer.json
- composer
- step:
name: Rector and ECS
script:
- composer fix-rector
- composer fix-cs
- git config --global --add safe.directory /opt/atlassian/pipelines/agent/build
- if test -n "$(git diff)"; then git add . && git commit -m "[skip ci] Rector and ECS fixes" && git push; fi
caches:
- composer
- rector-cache
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.