mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
actions/checkout@v1 # v2 is broken for git diff
This commit is contained in:
parent
e13f4f4183
commit
562eb057d0
8
.github/workflows/cpplint_modified_files.yml
vendored
8
.github/workflows/cpplint_modified_files.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user