From 35a57f336a38f18070399fc5c482e6fc03014e20 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Mon, 18 Mar 2024 10:11:17 +0900 Subject: [PATCH] fixed preview dns subdomain from branch ref --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d1a9640..775df95 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,7 +26,7 @@ jobs: - if: github.ref_name != github.event.repository.default_branch id: set_preview_env shell: bash - run: echo url="https://$(echo "${HEAD_REF}" | sed s/[^_0-9a-z]/-/gi).jwk.pages.dev/" >> "${GITHUB_OUTPUT}" + run: echo url="https://$(echo "${HEAD_REF:0:28}" | sed s/[^_0-9a-z]/-/gi).jwk.pages.dev/" >> "${GITHUB_OUTPUT}" env: HEAD_REF: ${{ github.head_ref }} - name: Run tests on ${{ env.BASE_URL }}