Skip to content

Commit 810ab47

Browse files
committed
Annotate Version Line
1 parent 39a4e15 commit 810ab47

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/check_samples.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ jobs:
5252
VERSION_LINE_MISSING=$(find . -not -path '*/\.*' -type f -name '*.conf.sample' -exec grep -H -c -P '^## Version (?:19|20|21)[0-9]{2}/(?:(?:0[1-9]|1[0-2])/(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])/(?:30))|(?:(?:0[13578]|1[02])/31))$' {} \; | grep 0$ | cut -d':' -f1)
5353
VERSION_LINE_MISSING_COUNT=$(echo "${VERSION_LINE_MISSING}" | wc -w)
5454
if (( VERSION_LINE_MISSING_COUNT > 0 )); then
55-
echo "The following files are missing the version date line or it is not formatted correctly (YYYY/MM/DD):"
56-
echo "${VERSION_LINE_MISSING}"
55+
for i in ${VERSION_LINE_MISSING}; do
56+
echo "::error file=${i},line=1,title=Version Line::This file is missing the version date line or it is not formatted correctly (YYYY/MM/DD)"
57+
done
5758
exit 1
5859
fi

0 commit comments

Comments
 (0)