Skip to content

Commit 1967375

Browse files
authored
refine workflow (#34)
* refine workflow * workflow test * modified: tools/02_validate_module.sh * modified: tools/02_validate_module.sh * modified: tools/02_validate_module.sh * removed old function
1 parent 4feb02a commit 1967375

File tree

9 files changed

+105
-239
lines changed

9 files changed

+105
-239
lines changed

.github/workflows/00_github_staging-validate.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: 03 Staging Gate
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'staging/**'
7+
- 'tools/**'
8+
9+
jobs:
10+
gate:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Fail if staging folder is missing or empty
16+
run: |
17+
if [ ! -d staging ] || [ -z "$(ls -A staging)" ]; then
18+
echo "::error ::staging folder is missing or empty. Please add or update at least one module."
19+
exit 1
20+
fi
21+
22+
- name: Staging compatibility check
23+
run: bash tools/02_validate_module.sh
24+
25+
- name: Run all tools and report pass/fail
26+
run: |
27+
status=0
28+
for tool in tools/[0-9][0-9]_*.sh; do
29+
# Skip 02_validate_module.sh (already run)
30+
if [[ "$(basename "$tool")" == "02_validate_module.sh" ]]; then
31+
continue
32+
fi
33+
echo "=== Running: $tool ==="
34+
bash "$tool"
35+
result=$?
36+
if [[ $result -eq 0 ]]; then
37+
echo "::notice ::PASS: $tool"
38+
else
39+
echo "::error ::FAIL: $tool (exit code $result)"
40+
status=1
41+
fi
42+
echo
43+
done
44+
exit $status

.github/workflows/05_github_tests-validate.yml.hold

Lines changed: 0 additions & 92 deletions
This file was deleted.

src/core/interface/submenu.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ feature=submenu
55
description=Displays an interactive submenu for module functions based on their help output.
66
extend_desc=Parses the help message of a given module and presents an interactive menu via dialog, whiptail, or CLI prompt.
77
documents=false
8-
options=
8+
options=<module_name help>
99
parent=core
1010
group=interface
1111
contributor=@tearran
@@ -14,4 +14,4 @@ arch=arm64 armhf x86-64
1414
require_os=Armbian Debian Ubuntu
1515
require_kernel=5.15+
1616
port=false
17-
helpers= # Will list _*_submenu() helpers when available
17+
helpers=_about_submenu

src/core/interface/yes_no_box.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ arch=arm64 armhf x86-64
1414
require_os=Armbian Debian Ubuntu
1515
require_kernel=5.15+
1616
port=false
17-
helpers= # Will list _*_yes_no_box() helpers when available
17+
helpers=_about_yes_no_box

0 commit comments

Comments
 (0)