|
@ -28,6 +28,8 @@ jobs: |
|
|
- name: Get changed files |
|
|
- name: Get changed files |
|
|
id: file_changes |
|
|
id: file_changes |
|
|
uses: tj-actions/changed-files@v42 |
|
|
uses: tj-actions/changed-files@v42 |
|
|
|
|
|
with: |
|
|
|
|
|
use_rest_api: true |
|
|
|
|
|
|
|
|
- name: Print info |
|
|
- name: Print info |
|
|
run: | |
|
|
run: | |
|
@ -62,10 +64,12 @@ jobs: |
|
|
|
|
|
|
|
|
qmk format-text ${{ steps.file_changes.outputs.all_changed_files}} || true |
|
|
qmk format-text ${{ steps.file_changes.outputs.all_changed_files}} || true |
|
|
for file in ${{ steps.file_changes.outputs.all_changed_files}}; do |
|
|
for file in ${{ steps.file_changes.outputs.all_changed_files}}; do |
|
|
if ! git diff --quiet $file; then |
|
|
|
|
|
echo "File '${file}' Requires Formatting" |
|
|
|
|
|
echo "::error file=${file}::Requires Formatting" |
|
|
|
|
|
exit_code=$(($exit_code + 1)) |
|
|
|
|
|
|
|
|
if [[ -f $file ]]; then |
|
|
|
|
|
if ! git diff --quiet $file; then |
|
|
|
|
|
echo "File '${file}' Requires Formatting" |
|
|
|
|
|
echo "::error file=${file}::Requires Formatting" |
|
|
|
|
|
exit_code=$(($exit_code + 1)) |
|
|
|
|
|
fi |
|
|
fi |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
|
|
|
|