mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-14 00:53:10 -07:00
Merge pull request #184 from linuxserver/allowed-names
Create allowed_names.yml
This commit is contained in:
commit
98a6b62577
1 changed files with 24 additions and 0 deletions
24
.github/workflows/allowed_names.yml
vendored
Normal file
24
.github/workflows/allowed_names.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
name: Check Allowed File Names
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-allowed-file-names:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Check Allowed File Names
|
||||||
|
run: |
|
||||||
|
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 are not allowed:"
|
||||||
|
echo "${NOT_SAMPLES}"
|
||||||
|
exit 1
|
||||||
|
fi
|
Loading…
Add table
Add a link
Reference in a new issue