fix(ci): authenticate B2 list-bucket request in existing-version check #7

Merged
pat-s merged 1 commit from t3code/f3864a84 into main 2026-06-29 11:02:04 +00:00

2026-06-29

fix(ci): authenticate B2 list-bucket request in existing-version check
Backblaze B2 requires authentication for the list-bucket API; anonymous
access only works for individual public-read objects. The unauthenticated
curl returned AccessDenied, so r-version-s3.txt was always empty and every
R version was rebuilt despite already existing in s3.

Sign the listing request with --aws-sigv4 using the same B2 credentials as
the upload step. Also fix the broken version extraction: the old
substr($NF, 3, 5) ran against the prefixed key and yielded garbage, so the
Build step's grep could never match. Print the actual version on a match
and use a literal index() instead of a regex comparison.
2026-06-29 13:01:19 +02:00