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

Commit

Permalink
Bala/Fix cf-pages chars limit issue (#5693)
Browse files Browse the repository at this point in the history
* fix: gh-pages chart limit issue

* Update .github/workflows/generate-preview-link.yml

Co-authored-by: adrienne-deriv <[email protected]>

---------

Co-authored-by: adrienne-deriv <[email protected]>
  • Loading branch information
balakrishna-deriv and adrienne-deriv authored Sep 27, 2023
1 parent 7c1e4be commit 2d03d81
Showing 1 changed file with 3 additions and 2 deletions.
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 = "${{steps.publish-to-pages.outputs.preview_url}}"
const comment = [
`**Preview Link**: ${preview_url}`,
'| Name | Result |',
Expand Down

1 comment on commit 2d03d81

@vercel
Copy link

@vercel vercel bot commented on 2d03d81 Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-com – ./

deriv-com-git-master.binary.sx
deriv-com.binary.sx

Please sign in to comment.