Skip to content

Commit

Permalink
Merge pull request #31 from deriv-com/sandeep/bot-1694/self-exclusion…
Browse files Browse the repository at this point in the history
…-fix

chore: 🔥 updated test link yml
  • Loading branch information
ali-hosseini-deriv authored Jul 24, 2024
2 parents a826080 + d27505f commit a6a53ec
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build-and-deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ jobs:
message: ${{steps.generate_action_url.outputs.comment}}
recreate: true

- name: Create npmrc file
shell: bash
run: echo "@deriv-com:registry=https://npm.pkg.github.com" >> .npmrc

- name: Get cached dependencies
id: cache-npm
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c
Expand Down Expand Up @@ -115,10 +111,9 @@ jobs:
branch=$(echo "$HEAD_BRANCH" | head -c 20 | sed 's/[\/_\.]/-/g; s/[^a-zA-Z0-9]$/1/')
cf_preview_url=$(wrangler pages deploy $directory --project-name=$CLOUDFLARE_PROJECT_NAME --branch=$branch > log.txt 2>&1; echo $?)
echo "------"
preview_url=https://$branch.$CLOUDFLARE_PROJECT_NAME.pages.dev
cat log.txt
if grep -q "Deployment complete" log.txt; then
echo "preview_url=$preview_url" >> "$GITHUB_OUTPUT"
echo "preview_url=$cf_preview_url" >> "$GITHUB_OUTPUT"
echo $preview_url > .pr/PREVIEW_URL
else
echo "Deployment to Cloudflare Pages failed."
Expand Down

0 comments on commit a6a53ec

Please sign in to comment.