devops(flakiness): collect more commit information (#4315)
Collect commit title and author details.
This commit is contained in:
parent
e3b12b0a0d
commit
51f8f23c5d
|
|
@ -42,6 +42,9 @@ fi
|
||||||
|
|
||||||
export BUILD_URL="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
|
export BUILD_URL="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
|
||||||
export COMMIT_SHA=$(git rev-parse HEAD)
|
export COMMIT_SHA=$(git rev-parse HEAD)
|
||||||
|
export COMMIT_TITLE=$(git show -s --format=%s HEAD)
|
||||||
|
export COMMIT_AUTHOR_NAME=$(git show -s --format=%an HEAD)
|
||||||
|
export COMMIT_AUTHOR_EMAIL=$(git show -s --format=%ae HEAD)
|
||||||
export COMMIT_TIMESTAMP=$(git show -s --format=%ct HEAD)
|
export COMMIT_TIMESTAMP=$(git show -s --format=%ct HEAD)
|
||||||
|
|
||||||
export HOST_OS_NAME="$(uname)"
|
export HOST_OS_NAME="$(uname)"
|
||||||
|
|
@ -62,6 +65,9 @@ EMBED_METADATA_SCRIPT=$(cat <<EOF
|
||||||
osVersion: process.env.HOST_OS_VERSION,
|
osVersion: process.env.HOST_OS_VERSION,
|
||||||
commitSHA: process.env.COMMIT_SHA,
|
commitSHA: process.env.COMMIT_SHA,
|
||||||
commitTimestamp: process.env.COMMIT_TIMESTAMP,
|
commitTimestamp: process.env.COMMIT_TIMESTAMP,
|
||||||
|
commitTitle: process.env.COMMIT_TITLE,
|
||||||
|
commitAuthorName: process.env.COMMIT_AUTHOR_NAME,
|
||||||
|
commitAuthorEmail: process.env.COMMIT_AUTHOR_EMAIL,
|
||||||
};
|
};
|
||||||
console.log(JSON.stringify(json));
|
console.log(JSON.stringify(json));
|
||||||
EOF
|
EOF
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue