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: