Output hash of created commit

This commit is contained in:
Jon Cram
2021-09-10 11:39:35 +01:00
parent 0426839718
commit 68fd92dd9c
3 changed files with 9 additions and 2 deletions

View File

@@ -86,6 +86,8 @@ _local_commit() {
commit -m "$INPUT_COMMIT_MESSAGE" \
--author="$INPUT_COMMIT_AUTHOR" \
${INPUT_COMMIT_OPTIONS:+"${INPUT_COMMIT_OPTIONS_ARRAY[@]}"};
echo "::set-output name=commit_hash::$(git rev-parse HEAD)";
}
_tag_commit() {