summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2020-08-17 10:12:45 +0100
committerGitHub <noreply@github.com>2020-08-17 02:12:45 -0700
commitd02301e59d49a15a51eedb3456b289b1d585c22e (patch)
tree6322e3f59f850e5746e2099ea4cd22c43f5ee50d
parentb4ae7badd46cb468cb8bef9be99dcf73f4a1e642 (diff)
Swap git diff logic to github action when running qmk info (#9978)0.9.54
* swap git diff logic to github action * Print out layouts when linting
-rw-r--r--.github/workflows/info.yml11
1 files changed, 8 insertions, 3 deletions
diff --git a/.github/workflows/info.yml b/.github/workflows/info.yml
index 31a1105836..7551c127e0 100644
--- a/.github/workflows/info.yml
+++ b/.github/workflows/info.yml
@@ -16,16 +16,21 @@ jobs:
with:
fetch-depth: 0
+ - uses: trilom/file-changes-action@v1.2.3
+ id: file_changes
+ with:
+ output: '\n'
+
- name: Print info
run: |
git rev-parse --short HEAD
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
shell: 'bash {0}'
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)
exit_code=0
@@ -41,7 +46,7 @@ jobs:
echo "linting ${KB}"
# 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/$$)
: $((exit_code = $exit_code + $?))
fi