mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 04:51:33 -07:00
Annotate files
This commit is contained in:
parent
badf4dab6e
commit
4df1c8c537
1 changed files with 3 additions and 2 deletions
5
.github/workflows/check_samples.yml
vendored
5
.github/workflows/check_samples.yml
vendored
|
@ -18,8 +18,9 @@ jobs:
|
||||||
NOT_SAMPLES=$(find . -not -path '*/\.*' -type f ! \( -name '*.conf.sample' -o -name 'README.md' -o -name 'LICENSE' \))
|
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)
|
NOT_SAMPLES_COUNT=$(echo "${NOT_SAMPLES}" | wc -w)
|
||||||
if (( NOT_SAMPLES_COUNT > 0 )); then
|
if (( NOT_SAMPLES_COUNT > 0 )); then
|
||||||
echo "The following files have extensions that are not allowed:"
|
for i in ${NOT_SAMPLES}; do
|
||||||
echo "${NOT_SAMPLES}"
|
echo "::error file=${i},line=1,title=Disallowed filenames::This file extension is not allowed, only .sample is allowed"
|
||||||
|
done
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue