From bebac7b7aad471ecd7336e3900fd59f00e5fbae2 Mon Sep 17 00:00:00 2001 From: automation Date: Mon, 14 Sep 2026 10:18:04 +0300 Subject: [PATCH] fix(ci): POSIX sh (job image has no bash) --- .forgejo/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index cfd8bf4..d9eefb2 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -15,6 +15,11 @@ env: jobs: build-deploy: runs-on: k8s-arm64 # act_runner label → docker:27-cli, DinD at localhost:2375 + # The job image (docker:27-cli) is Alpine: only /bin/sh (no bash). Default all + # run: steps to sh so act_runner doesn't try (and fail to find) bash. + defaults: + run: + shell: sh env: DOCKER_HOST: tcp://localhost:2375 steps: @@ -29,7 +34,8 @@ jobs: - name: Short SHA id: sha - run: echo "value=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT" + # POSIX sh has no ${var::7} substring — use cut. + run: echo "value=$(printf '%s' "$GITHUB_SHA" | cut -c1-7)" >> "$GITHUB_OUTPUT" - name: Login to Harbor run: |