Skip to content

Commit f006b8e

Browse files
authored
chore: attempt to fix test build CI command (#410)
1 parent caba021 commit f006b8e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/pr.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ jobs:
9393
runs-on: ubuntu-latest
9494
steps:
9595
- uses: actions/checkout@v3
96+
with:
97+
fetch-depth: 0
98+
ref: ${{ github.head_ref }}
99+
repository: ${{github.event.pull_request.head.repo.full_name}}
96100
- uses: pnpm/[email protected]
97101
with:
98102
version: 7
@@ -102,6 +106,10 @@ jobs:
102106
cache: 'pnpm'
103107
- name: Install dependencies
104108
run: pnpm --filter "./packages/**" --filter form --prefer-offline install --no-frozen-lockfile
109+
- name: Get appropriate base and head commits for `nx affected` commands
110+
uses: nrwl/nx-set-shas@v3
111+
with:
112+
main-branch-name: 'main'
105113
- run: pnpm run test:build
106114
env:
107115
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)