Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Bala/Fix cf-pages chars limit issue #5693

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/generate-preview-link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ jobs:
echo "Deploying build to Cloudflare Pages"
directory='public'
projectName='deriv-com-preview-links'
branch=${{github.event.workflow_run.head_branch}}
head_branch=${{github.event.workflow_run.head_branch}}
branch=$(echo $head_branch | head -c 20)
preview_url=$(wrangler pages deploy $directory --project-name=$projectName --branch=$branch > log.txt 2>&1; echo $?)
echo "------"
cat log.txt
Expand All @@ -116,7 +117,7 @@ jobs:
with:
github-token: ${{ github.token }}
script: |
const preview_url = `https://${{github.event.workflow_run.head_branch}}.deriv-com-preview-links.pages.dev`
const preview_url = `https://${{steps.publish-to-pages.outputs.preview_url}}.deriv-com-preview-links.pages.dev`
balakrishna-deriv marked this conversation as resolved.
Show resolved Hide resolved
const comment = [
`**Preview Link**: ${preview_url}`,
'| Name | Result |',
Expand Down
Loading