mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 13:01:35 -07:00
Update workflow for version checks
This commit is contained in:
parent
af4bcf72bb
commit
9da6b70153
1 changed files with 11 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
name: Check Allowed File Names
|
||||
name: Check Samples
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -22,3 +22,13 @@ jobs:
|
|||
echo "${NOT_SAMPLES}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Check Version Date Line Exists
|
||||
run: |
|
||||
VERSION_LINE_MISSING=$(find . -not -path '*/\.*' -type f -name '*.conf.sample' -exec grep -H -c -P '^## Version \d{4}/\d{2}/\d{2}$' {} \; | grep 0$ | cut -d':' -f1)
|
||||
VERSION_LINE_MISSING_COUNT=$(echo "${VERSION_LINE_MISSING}" | wc -w)
|
||||
if (( VERSION_LINE_MISSING_COUNT > 0 )); then
|
||||
echo "The following files are missing the version date line:"
|
||||
echo "${VERSION_LINE_MISSING}"
|
||||
exit 1
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue