From 0dd0646e9d887f289d5e1953d9c188e670cdec46 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 6 Apr 2022 10:40:01 -0400 Subject: [PATCH] chore(ci): ensure that the latest commit is pulled when checking out (#25063) --- .github/workflows/actions/build-core/action.yml | 3 +++ .github/workflows/build.yml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/actions/build-core/action.yml b/.github/workflows/actions/build-core/action.yml index 4d711dd0c7..6b7647160b 100644 --- a/.github/workflows/actions/build-core/action.yml +++ b/.github/workflows/actions/build-core/action.yml @@ -4,6 +4,9 @@ runs: using: 'composite' steps: - uses: actions/checkout@v2 + with: + # Checkout the latest commit in this branch + ref: ${{ github.event.pull_request.head.sha }} - uses: actions/setup-node@v1 with: node-version: 15.x diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e20d6c76d1..d8894de7a8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/checkout@v2 + with: + # Checkout the latest commit in this branch + ref: ${{ github.event.pull_request.head.sha }} - uses: ./.github/workflows/actions/build-core test-core-clean-build: