stable-diffusion-webui-docker/.github/workflows/executable.yml
Abdullah Barhoum ad9b914350 yaml
2022-09-06 19:30:28 +02:00

22 lines
473 B
YAML

name: Check executable
on: [push]
jobs:
check:
runs-on: ubuntu-latest
name: Check all sh
steps:
- uses: actions/checkout@v3
- shell: bash
run: |
shopt -s globstar;
FAIL=0
for file in **/*.sh; do
if [ -f "${file}" ] && [ -r "${file}" ] && [ ! -x "${file}" ]; then
echo "$file" is not executable;
FAIL=1
fi
done
exit ${FAIL}