Skip to content

Commit

Permalink
Get the base commit
Browse files Browse the repository at this point in the history
In order to see what changes this PR is making,
we need to get the base commit.
  • Loading branch information
jsoref committed Nov 11, 2021
1 parent 51c617a commit d106fa5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Check License Header
uses: apache/skywalking-eyes@main
- name: Ensure clang-format-10 is available
run: |
command -v clang-format-10 > /dev/null || (apt-get update && apt-get install -y clang-format-10)
- name: Get base commit
run: |
git fetch $GITHUB_BASE_REF
- name: Cpplint
run: |
ln -snf $PWD/.linters/cpp/hooks/pre-commit.sh $PWD/.linters/cpp/pre-commit.sh
Expand Down

0 comments on commit d106fa5

Please sign in to comment.