Skip to content

Commit a789ac8

Browse files
committed
[ci] Added 'latest commit' to deployed tags and commits
1 parent 9252178 commit a789ac8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/commit_upm.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ repo=${1?Local repo folder required.}
1717
# Working directory
1818
cd $repo
1919

20+
# Reading most recent commit
21+
echo "Fetching latest commit message from '$repo'"
22+
latestCommit="$(git --no-pager log --pretty='%h %B' -n 1)"
23+
echo
24+
2025
# Commit
2126
echo ">>> Committing changes"
2227

@@ -31,6 +36,9 @@ set +e
3136
git commit -m ":heavy_check_mark: [CircleCI] Mellis $MELLIS_VERSION, Python3 module $MELLIS_PYTHON3_VERSION
3237
This commit was created autonomously by a script in the CircleCI workflow.
3338
39+
Latest commit:
40+
$latestCommit
41+
3442
:shipit: $CIRCLE_BUILD_URL
3543
:octocat: https://github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/commit/$CIRCLE_SHA1"
3644
COMMIT_STATUS=$?
@@ -88,6 +96,9 @@ TAG_COUNT=$((0))
8896
tagMessage="Mellis $MELLIS_VERSION, Python3 module $MELLIS_PYTHON3_VERSION
8997
This tag was created autonomously by a script in the CircleCI workflow.
9098
99+
Latest commit:
100+
$latestCommit
101+
91102
:shipit: $CIRCLE_BUILD_URL
92103
:octocat: https://github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/commit/$CIRCLE_SHA1"
93104

0 commit comments

Comments
 (0)