Skip to content

Commit

Permalink
Discover .git-commit from environment
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermckinnon committed Sep 1, 2023
1 parent 45a7f30 commit 5640ea3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build-tools/bin/archivebuild-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@

# This file is for Amazon internal build processes

git rev-parse HEAD > .git-commit
HEAD_COMMIT="${BRAZIL_PACKAGE_CHANGE_ID:-$(git rev-parse HEAD)}"

if [ "${HEAD_COMMIT}" = "" ]; then
echo >&2 "could not determine HEAD commit"
exit 1
fi

echo "${HEAD_COMMIT}" > .git-commit
archivebuild

0 comments on commit 5640ea3

Please sign in to comment.