From fb92a8ef7bfcc42fc973893334191aa5ff77c64e Mon Sep 17 00:00:00 2001 From: pasta Date: Thu, 5 Sep 2024 22:37:06 -0500 Subject: [PATCH] ci: fix, in github actions CI, we don't actually check out the PR, but the base --- .github/workflows/build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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