From 4df1c8c537e1ebac539746d35d60a094bcd03624 Mon Sep 17 00:00:00 2001 From: Roxedus Date: Thu, 21 Jul 2022 21:24:21 +0200 Subject: [PATCH] Annotate files --- .github/workflows/check_samples.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check_samples.yml b/.github/workflows/check_samples.yml index 3ff7c56..4c508dd 100644 --- a/.github/workflows/check_samples.yml +++ b/.github/workflows/check_samples.yml @@ -18,8 +18,9 @@ jobs: NOT_SAMPLES=$(find . -not -path '*/\.*' -type f ! \( -name '*.conf.sample' -o -name 'README.md' -o -name 'LICENSE' \)) NOT_SAMPLES_COUNT=$(echo "${NOT_SAMPLES}" | wc -w) if (( NOT_SAMPLES_COUNT > 0 )); then - echo "The following files have extensions that are not allowed:" - echo "${NOT_SAMPLES}" + for i in ${NOT_SAMPLES}; do + echo "::error file=${i},line=1,title=Disallowed filenames::This file extension is not allowed, only .sample is allowed" + done exit 1 fi