Fix the regression from PR #40 — ${GITHUB_SHA:0:7} substring expansion is bash-only; the runner executes run: steps via dash/BusyBox sh and errored with Bad substitution on the 65386f0 main-push build (both build-web and build-ml failed at "Determine tag" before login/push fired).
Switched to SHORT_SHA=$(printf '%s' "$GITHUB_SHA" | cut -c1-7) which works in both shells. Both build-web and build-ml tag-determination steps updated.
Test plan
After merge, build-web + build-ml fire and publish :main, :latest, :c-<short_sha> without errors.
docker pull git.fabledsword.com/bvandeusen/fabledcurator:c-<short_sha> resolves the new per-commit tag.
## Summary
Fix the regression from PR #40 — `${GITHUB_SHA:0:7}` substring expansion is bash-only; the runner executes `run:` steps via dash/BusyBox sh and errored with `Bad substitution` on the 65386f0 main-push build (both `build-web` and `build-ml` failed at "Determine tag" before login/push fired).
Switched to `SHORT_SHA=$(printf '%s' "$GITHUB_SHA" | cut -c1-7)` which works in both shells. Both build-web and build-ml tag-determination steps updated.
## Test plan
- [ ] After merge, build-web + build-ml fire and publish `:main`, `:latest`, `:c-<short_sha>` without errors.
- [ ] `docker pull git.fabledsword.com/bvandeusen/fabledcurator:c-<short_sha>` resolves the new per-commit tag.
`${GITHUB_SHA:0:7}` substring expansion is bash-only; the runner
executes the step via dash/BusyBox sh and errored with
`Bad substitution` (act_runner workflow shell, observed on the
65386f0 main-push run). Switched to
`SHORT_SHA=$(printf '%s' "$GITHUB_SHA" | cut -c1-7)` which works in
both shells. Both build-web and build-ml tag-determination steps
updated.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Fix the regression from PR #40 —
${GITHUB_SHA:0:7}substring expansion is bash-only; the runner executesrun:steps via dash/BusyBox sh and errored withBad substitutionon the65386f0main-push build (bothbuild-webandbuild-mlfailed at "Determine tag" before login/push fired).Switched to
SHORT_SHA=$(printf '%s' "$GITHUB_SHA" | cut -c1-7)which works in both shells. Both build-web and build-ml tag-determination steps updated.Test plan
:main,:latest,:c-<short_sha>without errors.docker pull git.fabledsword.com/bvandeusen/fabledcurator:c-<short_sha>resolves the new per-commit tag.`${GITHUB_SHA:0:7}` substring expansion is bash-only; the runner executes the step via dash/BusyBox sh and errored with `Bad substitution` (act_runner workflow shell, observed on the65386f0main-push run). Switched to `SHORT_SHA=$(printf '%s' "$GITHUB_SHA" | cut -c1-7)` which works in both shells. Both build-web and build-ml tag-determination steps updated.