Commit 1deca16
refactor: extract inline bash into testable scripts with CI pipeline
Extract all inline bash logic from action.yml into separate script files
under scripts/, add 64 bats-core tests, shellcheck linting, and a CI
workflow. Replace curl-based GitHub Deployment creation with
actions/github-script using Octokit for type safety and automatic
retry/rate-limiting.
Key changes:
- Extract tag generation, architecture verification, image retagging,
and GitOps update logic into individual scripts
- Add shared utility library (logging, retry with backoff, validation)
- Deduplicate 4x identical file-update loops into process_file_updates()
- Replace manual curl+jq deployment creation with actions/github-script
- Improve git push retry: exponential backoff (5 attempts) instead of
simple chaining (3 attempts)
- Fix shellcheck warnings (SC2206: array=($line) -> read -r)
- Add CI pipeline: shellcheck, bats tests, action structure validation
All inputs (29), outputs (3), and step IDs remain unchanged.
Consumers do not need to modify their workflows.
Co-Authored-By: Claude <claude@anthropic.com>1 parent 2f0c038 commit 1deca16
18 files changed
Lines changed: 1425 additions & 272 deletions
File tree
- .github/workflows
- scripts
- lib
- tests
- fixtures
- test_helper
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments