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

Commit

Permalink
adrienne / fix branch name formatting for cloudflare pages deployment…
Browse files Browse the repository at this point in the history
… comment (#5683)

* refactor: sanitized email input from html element symbols

* chore: added pre-flow workflow for cloudflare pages

* chore: reverted prettier changes

* Revert "chore: reverted prettier changes"

This reverts commit a401298.

* chore: reverted prettier changes again

* chore: reverted pretiter changes againn

* Update messages.json

* Update messages.json

* chore: change secrets name

* fix: fixed issues with branch naming
  • Loading branch information
adrienne-deriv authored Sep 26, 2023
1 parent 186f43e commit 40725f4
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 @@ -36,7 +36,7 @@ jobs:
run_id: ${{ github.event.workflow_run.id }}
name: 'pr-${{ github.event.workflow_run.id }}'

- name: Retrieve and verify user organization
- name: Retrieve pull request and verify user organization
id: pr_information
run: |
echo "Verifying user's organization..."
Expand All @@ -53,6 +53,7 @@ jobs:
exit 1
else
echo "User is a member of binary-com organization."
echo "Proceeding to build and deploy for the pull request: https://github.com/binary-com/deriv-com/pull/$(cat ./NR)"
echo "issue_number=$(cat ./NR)" > $GITHUB_OUTPUT
fi
- name: Checkout to repo
Expand Down Expand Up @@ -102,7 +103,7 @@ jobs:
preview_url=$(wrangler pages deploy $directory --project-name=$projectName --branch=$branch > log.txt 2>&1; echo $?)
echo "------"
cat log.txt
branchName=$(echo $branch | sed 's/[\/_]/-/g')
branchName=$(echo $branch | sed 's/[\/_\.]/-/g')
if grep -q "Deployment complete" log.txt; then
echo "preview_url=https://$branchName.deriv-com-preview-links.pages.dev" > "$GITHUB_OUTPUT"
else
Expand Down

1 comment on commit 40725f4

@vercel
Copy link

@vercel vercel bot commented on 40725f4 Sep 26, 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.binary.sx
deriv-com-git-master.binary.sx

Please sign in to comment.