Return reuse of commit message from head instead of irrelevant messages
@@ -151,7 +151,7 @@ jobs:
export scansdoc="docs/5.Policy Index/serverless.md"
pipenv run python checkov/main.py --list --framework cloudformation >> "$scansdoc"
git add "docs/5.Policy Index/*"
- git commit -m "Update docs" || echo "No changes to commit"
+ git commit --reuse-message=HEAD@{1} || echo "No changes to commit"
git config --global user.name 'schosterbarak'
git config --global user.email 'schosterbarak@users.noreply.github.com'
@@ -166,7 +166,7 @@ jobs:
echo "version = '$new_tag'" > 'checkov/version.py'
echo "checkov==$new_tag" > 'kubernetes/requirements.txt'
- git commit -m "Bump checkov dependency version" checkov/version.py kubernetes/requirements.txt || echo "No changes to commit"
+ git commit --reuse-message=HEAD@{1} checkov/version.py kubernetes/requirements.txt || echo "No changes to commit"
git push origin
git tag $new_tag
git push --tags
