File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 42
42
43
43
export BUILD_URL=" https://github.com/${GITHUB_REPOSITORY} /actions/runs/${GITHUB_RUN_ID} "
44
44
export COMMIT_SHA=$( git rev-parse HEAD)
45
+ export COMMIT_TITLE=$( git show -s --format=%s HEAD)
46
+ export COMMIT_AUTHOR_NAME=$( git show -s --format=%an HEAD)
47
+ export COMMIT_AUTHOR_EMAIL=$( git show -s --format=%ae HEAD)
45
48
export COMMIT_TIMESTAMP=$( git show -s --format=%ct HEAD)
46
49
47
50
export HOST_OS_NAME=" $( uname) "
@@ -62,6 +65,9 @@ EMBED_METADATA_SCRIPT=$(cat <<EOF
62
65
osVersion: process.env.HOST_OS_VERSION,
63
66
commitSHA: process.env.COMMIT_SHA,
64
67
commitTimestamp: process.env.COMMIT_TIMESTAMP,
68
+ commitTitle: process.env.COMMIT_TITLE,
69
+ commitAuthorName: process.env.COMMIT_AUTHOR_NAME,
70
+ commitAuthorEmail: process.env.COMMIT_AUTHOR_EMAIL,
65
71
};
66
72
console.log(JSON.stringify(json));
67
73
EOF
You can’t perform that action at this time.
0 commit comments