Skip to content

Commit

Permalink
actions/checkout@v1 # v2 is broken for git diff
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Mar 1, 2020
1 parent e13f4f4 commit 562eb05
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/cpplint_modified_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,12 @@ jobs:
cpplint_modified_files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v1 # v2 is broken for git diff
- uses: actions/setup-python@v1
- run: python -m pip install cpplint
- run: git remote -v
- run: git branch
#- run: git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
- run: git diff --diff-filter=am --name-only master HEAD || true
- run: git diff --name-only origin/master HEAD || true
- run: git diff --name-only upstream/master HEAD || true
- run: git diff origin/master HEAD --name-only || true
- run: git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
- run: git diff origin/master HEAD --name-only > git_diff.txt
- name: cpplint_modified_files
shell: python
Expand Down

0 comments on commit 562eb05

Please sign in to comment.