fixed preview dns subdomain from branch ref

This commit is contained in:
Nebel 2024-03-18 10:11:17 +09:00
parent 84705fc749
commit 35a57f336a
Signed by: nebel
GPG key ID: 79807D08C6EF6460

View file

@ -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 }}