-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
32 additions
and
77 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
name: dynamicdns shell checker | ||
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@v2 | ||
- name: Check syntax script | ||
id: syntax_checker | ||
run: bash -n sh_tool/bin/dynamicdns.sh && echo ::set-output name=status::success || echo ::set-output name=status::failure | ||
- uses: actions/checkout@v4 | ||
- name: Check size script | ||
id: size_checker | ||
run: | | ||
echo Checking size | ||
code_line_number=$(wc -l < sh_tool/bin/dynamicdns.sh) | ||
[[ $code_line_number -gt 300 ]] && echo ::set-output name=status::failure || echo ::set-output name=status::success | ||
- name: Check on failures | ||
if: steps.syntax_checker.outputs.status == 'failure' || steps.size_checker.outputs.status == 'failure' | ||
run: exit 1 | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: dynamicdns toc | ||
name: dynamicdns_toc | ||
on: push | ||
jobs: | ||
generateTOC: | ||
name: TOC Generator | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: technote-space/toc-generator@v2 | ||
- uses: technote-space/toc-generator@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
|
||
_ _ _ | ||
__| |_ _ _ __ __ _ _ __ ___ (_) ___ __| |_ __ ___ | ||
/ _` | | | | '_ \ / _` | '_ ` _ \| |/ __/ _` | '_ \/ __| | ||
| (_| | |_| | | | | (_| | | | | | | | (_| (_| | | | \__ \ | ||
\__,_|\__, |_| |_|\__,_|_| |_| |_|_|\___\__,_|_| |_|___/ | ||
|___/ | ||
|
||
|
||
██ ██ ██ | ||
░██ ░░ ░██ | ||
░██ ██ ██ ███████ ██████ ██████████ ██ █████ ░██ ███████ ██████ | ||
██████ ░░██ ██ ░░██░░░██ ░░░░░░██ ░░██░░██░░██░██ ██░░░██ ██████░░██░░░██ ██░░░░ | ||
██░░░██ ░░███ ░██ ░██ ███████ ░██ ░██ ░██░██░██ ░░ ██░░░██ ░██ ░██░░█████ | ||
░██ ░██ ░██ ░██ ░██ ██░░░░██ ░██ ░██ ░██░██░██ ██░██ ░██ ░██ ░██ ░░░░░██ | ||
░░██████ ██ ███ ░██░░████████ ███ ░██ ░██░██░░█████ ░░██████ ███ ░██ ██████ | ||
░░░░░░ ██ ░░░ ░░ ░░░░░░░░ ░░░ ░░ ░░ ░░ ░░░░░ ░░░░░░ ░░░ ░░ ░░░░░░ | ||
░░ |