Skip to content

Commit

Permalink
Bala/Fix cf-pages chars limit issue (binary-com#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
2 people authored and meenu-deriv committed Oct 4, 2023
1 parent 772287b commit d34237c
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

0 comments on commit d34237c

Please sign in to comment.