forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update files changed action (qmk#19172)
- Loading branch information
Showing
2 changed files
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,16 +27,14 @@ jobs: | |
run: | | ||
pip3 install -r requirements-dev.txt | ||
- uses: trilom/[email protected] | ||
- name: Get changed files | ||
id: file_changes | ||
with: | ||
output: ' ' | ||
fileOutput: ' ' | ||
uses: tj-actions/changed-files@v34 | ||
|
||
- name: Run qmk formatters | ||
shell: 'bash {0}' | ||
run: | | ||
cat ~/files_added.txt ~/files_modified.txt > ~/files_changed.txt | ||
echo '${{ steps.file_changes.outputs.added_files}}' '${{ steps.file_changes.outputs.modified_files}}' > ~/files_changed.txt | ||
qmk format-c --core-only $(< ~/files_changed.txt) || true | ||
qmk format-python $(< ~/files_changed.txt) || true | ||
qmk format-text $(< ~/files_changed.txt) || true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,21 +19,20 @@ jobs: | |
- name: Install dependencies | ||
run: pip3 install -r requirements-dev.txt | ||
|
||
- uses: trilom/[email protected] | ||
- name: Get changed files | ||
id: file_changes | ||
with: | ||
output: '\n' | ||
uses: tj-actions/changed-files@v34 | ||
|
||
- name: Print info | ||
run: | | ||
git rev-parse --short HEAD | ||
echo ${{ github.event.pull_request.base.sha }} | ||
echo '${{ steps.file_changes.outputs.files}}' | ||
echo '${{ steps.file_changes.outputs.all_changed_files}}' | ||
- name: Run qmk lint | ||
shell: 'bash {0}' | ||
run: | | ||
QMK_CHANGES=$(echo -e '${{ steps.file_changes.outputs.files}}') | ||
QMK_CHANGES=$(echo -e '${{ steps.file_changes.outputs.all_changed_files}}' | sed 's/ /\n/g') | ||
QMK_KEYBOARDS=$(qmk list-keyboards) | ||
exit_code=0 | ||
|