Skip to content

Commit 732dcda

Browse files
committed
Commit message to include version information
1 parent b575044 commit 732dcda

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

api-docs-gen/commit-and-push.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,17 @@ git config --global user.name "Deepak Kumar"
77

88
git add -A
99

10-
if git commit -m "Committed by Github action"
10+
message=$(
11+
echo "Committed by Github action"
12+
echo
13+
14+
for i in master develop; do
15+
echo -n "$i: "
16+
cat _data/versions/$i.json
17+
done
18+
)
19+
20+
if git commit -m "$message"
1121
then
1222
git push origin HEAD
1323
fi

0 commit comments

Comments
 (0)