CICD-111 · Reuse shell helper from app code
Encyclopedia · Workflow reuse and caching · All snippets
Previous · CICD-110 · Next · CICD-112
1. Where it fits
- Placement Bash run step following checkout, or equivalent lab terminal.
- Prerequisites trusted checkout and cache/artifact support verified on the chosen Actions runner.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
bash ./scripts/check-config.sh config/ci.toml3. How it works
The shell executes a versioned helper with one explicit configuration path. Calling the same helper locally keeps CI and developer checks aligned.
4. Verify the result
Version scripts with callers and check the helper in isolation.
Validation syntax-validated (Bash parse). Status definitions.