diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c7fc357ae5..106ec66e15 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,9 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + - name: Prepare id: prepare @@ -84,6 +87,9 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + - name: Cache dependencies uses: actions/cache@v4 @@ -132,6 +138,9 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + - name: Restore Cache dependencies uses: actions/cache/restore@v4 @@ -190,6 +199,8 @@ jobs: # steps: # - name: Checkout code # uses: actions/checkout@v4 +# with: +# ref: ${{ github.event.pull_request.head.sha }} # # - name: Download build artifacts # uses: actions/download-artifact@v4