From ed2228c7695542d5aaeb6c5139ee84bba1c8d7c0 Mon Sep 17 00:00:00 2001 From: Hasan Mobarak <126637868+hasan-deriv@users.noreply.github.com> Date: Wed, 28 Feb 2024 15:49:06 +0800 Subject: [PATCH] Pr 00 workflow fix 4 (#7182) * chore: test workflow * chore: removed * chore: test * chore: test * chore: fixed preview link workflow --- .github/workflows/generate-preview-link-eu.yml | 4 ++-- .github/workflows/generate-preview-link-row.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generate-preview-link-eu.yml b/.github/workflows/generate-preview-link-eu.yml index 7ccb2e63038..5af00057157 100644 --- a/.github/workflows/generate-preview-link-eu.yml +++ b/.github/workflows/generate-preview-link-eu.yml @@ -117,7 +117,7 @@ jobs: echo "Deploying build to Cloudflare Pages" directory='sites/eu/public' projectName='deriv-com-preview-links' - branch=eutestlink-$(echo "$HEAD_BRANCH" | head -c 20 | sed 's/[\/_\.]/-/g; s/[^a-zA-Z0-9]$/1/') + branch=eu-$(echo "$HEAD_BRANCH" | head -c 20 | sed 's/[\/_\.]/-/g; s/[^a-zA-Z0-9]$/1/') cf_preview_url=$(wrangler pages deploy $directory --project-name=$projectName --branch=$branch > log.txt 2>&1; echo $?) echo "------" preview_url=https://$branch.deriv-com-preview-links.pages.dev @@ -178,4 +178,4 @@ jobs: uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 with: name: 'pr-${{github.run_id}}' - path: .pr + path: .pr \ No newline at end of file diff --git a/.github/workflows/generate-preview-link-row.yml b/.github/workflows/generate-preview-link-row.yml index e297b14a411..fa7e23135e1 100644 --- a/.github/workflows/generate-preview-link-row.yml +++ b/.github/workflows/generate-preview-link-row.yml @@ -117,7 +117,7 @@ jobs: echo "Deploying build to Cloudflare Pages" directory='sites/row/public' projectName='deriv-com-preview-links' - branch=rowtestlink-$(echo "$HEAD_BRANCH" | head -c 20 | sed 's/[\/_\.]/-/g; s/[^a-zA-Z0-9]$/1/') + branch=row-$(echo "$HEAD_BRANCH" | head -c 20 | sed 's/[\/_\.]/-/g; s/[^a-zA-Z0-9]$/1/') cf_preview_url=$(wrangler pages deploy $directory --project-name=$projectName --branch=$branch > log.txt 2>&1; echo $?) echo "------" preview_url=https://$branch.deriv-com-preview-links.pages.dev