Skip to content

Commit 7344d24

Browse files
Add Vercel link to deploy job (#290)
* Fix for dev-portal is failing to build in UDR internal repo
1 parent adcb9cc commit 7344d24

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build-pr-preview.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
- main
99
- develop
1010
# paths:
11-
# Hello Security 👋, we are checking to make sure forked repo PR changed paths are only in content/** inside the job security-check.
12-
# We are doing this so we can also reuse this workflow for internal PRs, as pull_request_target also triggers on internal PRs. (As does pull_request)
11+
# Hello Security 👋, we are checking to make sure forked repo PR changed paths are only in content/** inside the job security-check.
12+
# We are doing this so we can also reuse this workflow for internal PRs, as pull_request_target also triggers on internal PRs. (As does pull_request)
1313

1414
concurrency:
1515
group: ${{ github.workflow }}-${{github.event_name}}-${{ github.event.pull_request.number || github.ref }}
@@ -124,6 +124,9 @@ jobs:
124124
- name: Install Vercel CLI
125125
run: npm i --global vercel@latest
126126

127+
- name: Link web-unified-docs Vercel Project # prevent creation/deployment to a web-unified-docs-internal Vercel project
128+
run: vercel link --yes --project web-unified-docs --token=${{ secrets.VERCEL_TOKEN }}
129+
127130
- name: Pull Vercel Environment Information
128131
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
129132

0 commit comments

Comments
 (0)