Commit 8831dad
committed
fix(ci): lowercase repo via bash, not the nonexistent lower() fn
GitHub Actions expressions do NOT have a lower() function (only
contains(), startsWith(), endsWith(), format(), join(), toJSON(),
fromJSON(), success(), failure(), always(), and a few others).
The previous attempt used ${{ lower(github.repository) }} and
the workflow refused to start with:
(Line: 283, Col: 20): Unrecognized function: 'lower'
Fix: do the lowercasing in bash via tr '[:upper:]' '[:lower:]',
which is available in the runner's coreutils. The lowercase
value is computed once in the build job's "Compute image tags"
step and exposed as a step output (repo_lc). The build job
also exposes it as a job output so the release job can reuse
it without recomputing.
Three consumers:
1. Build step tag construction: ghcr.io/${REPO_LC}:<version>
2. Build step org.opencontainers.image.source label:
${{ steps.tags.outputs.repo_lc }}
3. Release body docker pull examples:
${{ needs.build.outputs.repo_lc }}
Verified:
- YAML parses cleanly (PyYAML)
- grep finds zero ${{ ... lower(...) ... }} expressions
- tr lowercases 'IamCoder18/OpenBlog' → 'iamcoder18/openblog'
in shell1 parent 47ae424 commit 8831dad
1 file changed
Lines changed: 17 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
| |||
274 | 275 | | |
275 | 276 | | |
276 | 277 | | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
| 278 | + | |
284 | 279 | | |
285 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
286 | 292 | | |
287 | 293 | | |
288 | 294 | | |
| |||
291 | 297 | | |
292 | 298 | | |
293 | 299 | | |
| 300 | + | |
294 | 301 | | |
295 | 302 | | |
296 | 303 | | |
| |||
308 | 315 | | |
309 | 316 | | |
310 | 317 | | |
311 | | - | |
| 318 | + | |
312 | 319 | | |
313 | 320 | | |
314 | 321 | | |
| |||
386 | 393 | | |
387 | 394 | | |
388 | 395 | | |
389 | | - | |
390 | | - | |
| 396 | + | |
| 397 | + | |
391 | 398 | | |
392 | 399 | | |
393 | 400 | | |
| |||
0 commit comments