Skip to content

Merge pull request #17 from vroncevic/dev #12

Merge pull request #17 from vroncevic/dev

Merge pull request #17 from vroncevic/dev #12

name: dynamicdns_shell_checker
on:
push:
branches: [ master ]
paths:
- 'sh_tool/**'
pull_request:
branches: [ master ]
paths:
- 'sh_tool/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check size script
id: size_checker
run: |
modules_ok=0
modules=($(find sh_tool/ -type f -name '*.sh' -exec echo '{}' \;))
for mod in "${modules[@]}"; do line_numbers=$(wc -l < "${mod}"); [[ $line_numbers -gt 300 ]] && modules_ok=1; done
[[ $modules_ok -eq 0 ]] && echo ok || exit 1