aboutsummaryrefslogtreecommitdiff
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)
downloadqmk_firmware-d02301e59d49a15a51eedb3456b289b1d585c22e.tar.gz
qmk_firmware-d02301e59d49a15a51eedb3456b289b1d585c22e.zip
Swap git diff logic to github action when running qmk info (#9978)
* 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 31a110583..7551c127e 100644
--- a/.github/workflows/info.yml
+++ b/.github/workflows/info.yml
@@ -16,16 +16,21 @@ jobs:
16 with: 16 with:
17 fetch-depth: 0 17 fetch-depth: 0
18 18
19 - uses: trilom/file-changes-action@v1.2.3
20 id: file_changes
21 with:
22 output: '\n'
23
19 - name: Print info 24 - name: Print info
20 run: | 25 run: |
21 git rev-parse --short HEAD 26 git rev-parse --short HEAD
22 echo ${{ github.event.pull_request.base.sha }} 27 echo ${{ github.event.pull_request.base.sha }}
23 git diff --name-only ${{ github.event.pull_request.base.sha }}... 28 echo '${{ steps.file_changes.outputs.files}}'
24 29
25 - name: Run qmk info 30 - name: Run qmk info
26 shell: 'bash {0}' 31 shell: 'bash {0}'
27 run: | 32 run: |
28 QMK_CHANGES=$(git diff --name-only ${{ github.event.pull_request.base.sha }}...) 33 QMK_CHANGES=$(echo -e '${{ steps.file_changes.outputs.files}}')
29 QMK_KEYBOARDS=$(qmk list-keyboards) 34 QMK_KEYBOARDS=$(qmk list-keyboards)
30 35
31 exit_code=0 36 exit_code=0
@@ -41,7 +46,7 @@ jobs:
41 echo "linting ${KB}" 46 echo "linting ${KB}"
42 47
43 # TODO: info info always returns 0 - right now the only way to know failure is to inspect log lines 48 # TODO: info info always returns 0 - right now the only way to know failure is to inspect log lines
44 qmk info -kb ${KB} 2>&1 | tee /tmp/$$ 49 qmk info -l -kb ${KB} 2>&1 | tee /tmp/$$
45 !(grep -cq ☒ /tmp/$$) 50 !(grep -cq ☒ /tmp/$$)
46 : $((exit_code = $exit_code + $?)) 51 : $((exit_code = $exit_code + $?))
47 fi 52 fi