From f41a8473f89af369d9144815f6cb375639abb9c2 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 29 Aug 2021 11:31:33 +0200 Subject: [PATCH] Fixed path on preview env --- .github/workflows/deploy-preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 431ecf85..b10f759d 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -20,10 +20,10 @@ jobs: - name: Build run: | npm ci && \ - node ./scripts/set-homepage.js /shlink-web-client/${{ steps.generate_slug.outputs.slug }} && \ + node ./scripts/set-homepage.js /shlink-web-client/${GITHUB_HEAD_REF#refs/heads/} && \ rm src/service-worker.ts && \ npm run build - name: Deploy preview - uses: shlinkio/deploy-preview-action@v1.0.0 + uses: shlinkio/deploy-preview-action@v1.0.1 with: folder: build