Skip to content

Commit fd6faef

Browse files
committed
use specific head commit ?
1 parent 581a5c6 commit fd6faef

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -434,10 +434,10 @@ jobs:
434434
timeout-minutes: 10
435435
runs-on: ubuntu-20.04
436436
steps:
437-
- name: Check out head commit (${{ github.base_ref }})
437+
- name: Check out head commit (${{ github.event.pull_request.head.sha }})
438438
uses: actions/checkout@v4
439439
with:
440-
ref: ${{ github.base_ref }}
440+
ref: ${{ github.event.pull_request.head.sha }}
441441

442442
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
443443
uses: actions/checkout@v4
@@ -453,7 +453,7 @@ jobs:
453453
DEPENDENCY_CACHE_KEY: ${{ needs.job_build.outputs.dependency_cache_key }}
454454

455455
- name: Run affected tests
456-
run: yarn test:pr:browser --base=${{ github.base_ref }}
456+
run: yarn test:pr:browser --base=${{ github.event.pull_request.head.sha }}
457457
if: github.event_name == 'pull_request'
458458

459459
- name: Run all tests
@@ -533,10 +533,10 @@ jobs:
533533
matrix:
534534
node: [14, 16, 18, 20, 22]
535535
steps:
536-
- name: Check out head commit (${{ github.base_ref }})
536+
- name: Check out head commit (${{ github.event.pull_request.head.sha }})
537537
uses: actions/checkout@v4
538538
with:
539-
ref: ${{ github.base_ref }}
539+
ref: ${{ github.event.pull_request.head.sha }}
540540
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
541541
uses: actions/checkout@v4
542542
with:
@@ -551,7 +551,7 @@ jobs:
551551
DEPENDENCY_CACHE_KEY: ${{ needs.job_build.outputs.dependency_cache_key }}
552552

553553
- name: Run affected tests
554-
run: yarn test:pr:node --base=${{ github.base_ref }}
554+
run: yarn test:pr:node --base=${{ github.event.pull_request.head.sha }}
555555
if: github.event_name == 'pull_request'
556556
env:
557557
NODE_VERSION: ${{ matrix.node }}

0 commit comments

Comments
 (0)