Skip to content

Commit b3c0d55

Browse files
egpbosAxel-Naumann
authored andcommitted
fetch base ref
Uses example in as of yet unmerged PR actions/checkout#213
1 parent 625c635 commit b3c0d55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/code_analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@ jobs:
1515
BASE_COMMIT: ${{ github.event.pull_request.base.sha }}
1616
steps:
1717
- uses: actions/checkout@v2
18+
- name: Fetch base_ref HEAD
19+
run: git fetch --depth=1 origin +refs/heads/${{github.base_ref}}:refs/remotes/origin/${{github.base_ref}}
1820
- name: run clang-format script
1921
run: .ci/format_script.sh

0 commit comments

Comments
 (0)