Skip to content

Commit

Permalink
fetch base ref
Browse files Browse the repository at this point in the history
Uses example in as of yet unmerged PR actions/checkout#213
  • Loading branch information
egpbos committed Jun 24, 2021
1 parent c0f2291 commit 170826e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/code_analysis.yml
Original file line number Diff line number Diff line change
@@ -15,5 +15,7 @@ jobs:
BASE_COMMIT: ${{ github.event.pull_request.base.sha }}
steps:
- uses: actions/checkout@v2
- name: Fetch base_ref HEAD
run: git fetch --depth=1 origin +refs/heads/${{github.base_ref}}:refs/remotes/origin/${{github.base_ref}}
- name: run clang-format script
run: .ci/format_script.sh

0 comments on commit 170826e

Please sign in to comment.