From c2972e1c434921bace20054cb26cf8e29dc5fe99 Mon Sep 17 00:00:00 2001 From: Sergey Timoshin Date: Tue, 7 Oct 2025 18:42:55 +0100 Subject: [PATCH] Add git fetch steps to fetch PR commits in workflow --- .github/workflows/release-publish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index ea49614248..ae8cc63cb5 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -21,6 +21,11 @@ jobs: fetch-depth: 0 token: ${{ secrets.GITHUB_TOKEN }} + - name: Fetch PR commits + run: | + git fetch origin ${{ github.event.pull_request.base.sha }} + git fetch origin ${{ github.event.pull_request.head.sha }} + - name: Set up Rust uses: actions-rust-lang/setup-rust-toolchain@v1 with: