Skip to content

Commit

Permalink
fix: fetch all commits history if we want to rebase (#730)
Browse files Browse the repository at this point in the history
  • Loading branch information
librarian authored and qkrorlqr committed Mar 14, 2024
1 parent bba5403 commit 84c0129
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_and_test_on_demand.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_and_test_on_demand_cmake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 84c0129

Please sign in to comment.