From 84c012906172b235aa718162e8217892ecb00896 Mon Sep 17 00:00:00 2001 From: Nikita Menkovich Date: Wed, 13 Mar 2024 18:51:48 +0100 Subject: [PATCH] fix: fetch all commits history if we want to rebase (#730) --- .github/workflows/build_and_test_on_demand.yaml | 1 + .github/workflows/build_and_test_on_demand_cmake.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/build_and_test_on_demand.yaml b/.github/workflows/build_and_test_on_demand.yaml index a5ce0c9bc71..ae49db8ebb6 100644 --- a/.github/workflows/build_and_test_on_demand.yaml +++ b/.github/workflows/build_and_test_on_demand.yaml @@ -145,6 +145,7 @@ jobs: with: submodules: true ref: ${{ github.event.pull_request.head.sha }} + fetch-depth: ${{ contains(github.event.pull_request.labels.*.name, 'rebase') && 0 || 1 }} - name: Rebase PR if: ${{ github.event.pull_request.head.sha != '' && contains(github.event.pull_request.labels.*.name, 'rebase') }} shell: bash diff --git a/.github/workflows/build_and_test_on_demand_cmake.yaml b/.github/workflows/build_and_test_on_demand_cmake.yaml index 5cc035058d3..3b38d7301ac 100644 --- a/.github/workflows/build_and_test_on_demand_cmake.yaml +++ b/.github/workflows/build_and_test_on_demand_cmake.yaml @@ -85,6 +85,7 @@ jobs: with: submodules: true ref: ${{ github.event.pull_request.head.sha }} + fetch-depth: ${{ contains(github.event.pull_request.labels.*.name, 'rebase') && 0 || 1 }} - name: Rebase PR if: ${{ github.event.pull_request.head.sha != '' && contains(github.event.pull_request.labels.*.name, 'rebase') }} shell: bash