Skip to content

Commit 562eb05

Browse files
authored
actions/checkout@v1 # v2 is broken for git diff
1 parent e13f4f4 commit 562eb05

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/cpplint_modified_files.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,12 @@ jobs:
1111
cpplint_modified_files:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v1 # v2 is broken for git diff
1515
- uses: actions/setup-python@v1
1616
- run: python -m pip install cpplint
1717
- run: git remote -v
1818
- run: git branch
19-
#- run: git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
20-
- run: git diff --diff-filter=am --name-only master HEAD || true
21-
- run: git diff --name-only origin/master HEAD || true
22-
- run: git diff --name-only upstream/master HEAD || true
23-
- run: git diff origin/master HEAD --name-only || true
19+
- run: git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
2420
- run: git diff origin/master HEAD --name-only > git_diff.txt
2521
- name: cpplint_modified_files
2622
shell: python

0 commit comments

Comments
 (0)