Skip to content

Commit 2c91532

Browse files
committed
chore(ort-scan): Log the commit-ish and sha1 of the ORT config repo
Signed-off-by: Frank Viernau <[email protected]>
1 parent d8faa17 commit 2c91532

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

templates/ort-scan.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
- |
145145
if [[ -z "$(ls -A ${ORT_CONFIG_PATH})" ]]; then
146146
ORT_CONFIG_VCS_REVISION=${ORT_CONFIG_VCS_REVISION:-$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')}
147-
echo -e "\e[1;33m Retrieving ORT config from ${ORT_CONFIG_VCS_URL}... "
147+
echo -e "\e[1;33m Retrieving ORT config commit '${ORT_CONFIG_VCS_REVISION}' from ${ORT_CONFIG_VCS_URL}... "
148148
cd $ORT_CONFIG_PATH
149149
git init -q
150150
git remote add origin $ORT_CONFIG_VCS_URL
@@ -158,6 +158,8 @@
158158
&& export ORT_CONFIG_VCS_URL=$(git config remote.origin.url) \
159159
&& export ORT_CONFIG_VCS_REVISION=$(git rev-parse HEAD)
160160
cd -
161+
162+
echo -e "Using ORT config revision ${ORT_CONFIG_VCS_REVISION}."
161163
162164
# Generate ORT global configuration if not found and PostgreSQL is used.
163165
- |
@@ -454,4 +456,4 @@
454456
mv ${GOPATH}/pkg/mod/* ${GO_CACHE_LOCAL}
455457
fi
456458
457-
- export ORT_SCAN_FINISHED_AT=$(date +"%Y-%m-%dT%H:%M:%S%z")
459+
- export ORT_SCAN_FINISHED_AT=$(date +"%Y-%m-%dT%H:%M:%S%z")

0 commit comments

Comments
 (0)