Fixup commits postfix has same commit msg

This commit is contained in:
Jan Mikeš 2020-04-04 00:13:24 +02:00
parent 1fe9b145d0
commit f5c6bbaad3
No known key found for this signature in database
GPG Key ID: 1DEDF63B40DDA99D

View File

@ -50,10 +50,11 @@ jobs:
run: |
git config --global user.name 'rector-bot'
git config --global user.email 'tomas@getrector.org'
echo ::set-env name=COMMIT_MESSAGE::$(git log -1 --pretty=format:"%s")
- name: Commit Rector changes
if: steps.rector-git-check.outputs.modified == 'true'
run: git commit -am "fixup! [Rector CI] Fixed Rector issues"
run: git commit -am "fixup! ${COMMIT_MESSAGE}"
## Now, there might be coding standard issues after running Rector
-
@ -68,7 +69,7 @@ jobs:
- name: Commit CS changes
if: steps.cs-git-check.outputs.modified == 'true'
run: git commit -am "fixup! [Rector CI] Fixed CS issues"
run: git commit -am "fixup! fixup! ${COMMIT_MESSAGE}"
- name: Push changes