From 8bf3bd68da0d44c1f226b85671b069cc9c732acc Mon Sep 17 00:00:00 2001 From: ztimson Date: Thu, 17 Apr 2025 11:31:33 -0400 Subject: [PATCH] Actions: Fix clone --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b480b5d..7417183 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: REGISTRY="$(echo "${{github.server_url}}" | sed -E 's|https?://||')" DOCKER_HUB=$([ -n "${{secrets.DOCKER_HUB_USER}}" ] && [ -n "${{secrets.DOCKER_HUB_TOKEN}}" ] && [ -n "${{secrets.DOCKER_HUB_IMAGE}}" ] && echo "true" || echo "false") - git clone -b "${{github.ref_name}}" "${{github.token}}@${REGISTRY}/${{github.repository}}.git" . + git clone -b "${{github.ref_name}}" "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" . VERSION="$(grep -oP '(?<="version": ")[^"]+' package.json)" docker login -u "${{github.repository_owner}}" -p "${{secrets.DEPLOY_TOKEN}}" "$REGISTRY"