Commit b1df57e
committed
improve: add format validation and explicit error handling in github-release workflow
1. Add BUILD_INFO format validation before parsing
- Validates format: 'bbl_parser <sha> (<date>)'
- Uses regex: ^bbl_parser [a-f0-9]+ \([0-9]{4}-[0-9]{2}-[0-9]{2}\)$
- Fails fast with descriptive error if format unexpected
- Prevents silent tag generation with incorrect values
2. Replace silenced git operations with explicit error handling
- Add conditional logging for git tag creation
- Distinguishes between 'tag created' vs 'tag already exists'
- Explicit logging for git push with non-fatal fallback
- Better debugging when operations fail unexpectedly
- Clearer workflow logs with ✅/ℹ️/1 parent 1259466 commit b1df57e
1 file changed
Lines changed: 21 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
| 102 | + | |
| 103 | + | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
105 | 111 | | |
106 | 112 | | |
107 | 113 | | |
| |||
116 | 122 | | |
117 | 123 | | |
118 | 124 | | |
119 | | - | |
120 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
121 | 138 | | |
122 | 139 | | |
123 | 140 | | |
| |||
0 commit comments