mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 04:51:33 -07:00
Create allowed_names.yml
This commit is contained in:
parent
665c13cc4b
commit
d358b93123
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 '*.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