mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2026-02-20 04:59:12 +08:00
25 lines
618 B
YAML
25 lines
618 B
YAML
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
|