mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-10 02:30:07 +00:00
Swap git diff logic to github action when running qmk info (#9978)
* swap git diff logic to github action * Print out layouts when linting
This commit is contained in:
parent
b4ae7badd4
commit
d02301e59d
1 changed files with 8 additions and 3 deletions
11
.github/workflows/info.yml
vendored
11
.github/workflows/info.yml
vendored
|
@ -16,16 +16,21 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- uses: trilom/file-changes-action@v1.2.3
|
||||||
|
id: file_changes
|
||||||
|
with:
|
||||||
|
output: '\n'
|
||||||
|
|
||||||
- name: Print info
|
- name: Print info
|
||||||
run: |
|
run: |
|
||||||
git rev-parse --short HEAD
|
git rev-parse --short HEAD
|
||||||
echo ${{ github.event.pull_request.base.sha }}
|
echo ${{ github.event.pull_request.base.sha }}
|
||||||
git diff --name-only ${{ github.event.pull_request.base.sha }}...
|
echo '${{ steps.file_changes.outputs.files}}'
|
||||||
|
|
||||||
- name: Run qmk info
|
- name: Run qmk info
|
||||||
shell: 'bash {0}'
|
shell: 'bash {0}'
|
||||||
run: |
|
run: |
|
||||||
QMK_CHANGES=$(git diff --name-only ${{ github.event.pull_request.base.sha }}...)
|
QMK_CHANGES=$(echo -e '${{ steps.file_changes.outputs.files}}')
|
||||||
QMK_KEYBOARDS=$(qmk list-keyboards)
|
QMK_KEYBOARDS=$(qmk list-keyboards)
|
||||||
|
|
||||||
exit_code=0
|
exit_code=0
|
||||||
|
@ -41,7 +46,7 @@ jobs:
|
||||||
echo "linting ${KB}"
|
echo "linting ${KB}"
|
||||||
|
|
||||||
# TODO: info info always returns 0 - right now the only way to know failure is to inspect log lines
|
# TODO: info info always returns 0 - right now the only way to know failure is to inspect log lines
|
||||||
qmk info -kb ${KB} 2>&1 | tee /tmp/$$
|
qmk info -l -kb ${KB} 2>&1 | tee /tmp/$$
|
||||||
!(grep -cq ☒ /tmp/$$)
|
!(grep -cq ☒ /tmp/$$)
|
||||||
: $((exit_code = $exit_code + $?))
|
: $((exit_code = $exit_code + $?))
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue