Merge remote-tracking branch 'origin/master' into develop

This commit is contained in:
QMK Bot 2024-03-05 16:59:58 +00:00
commit 045e5c9729
2 changed files with 10 additions and 4 deletions

View File

@ -36,6 +36,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: Run qmk formatters - name: Run qmk formatters
shell: 'bash {0}' shell: 'bash {0}'

View File

@ -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,11 +64,13 @@ 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 [[ -f $file ]]; then
if ! git diff --quiet $file; then if ! git diff --quiet $file; then
echo "File '${file}' Requires Formatting" echo "File '${file}' Requires Formatting"
echo "::error file=${file}::Requires Formatting" echo "::error file=${file}::Requires Formatting"
exit_code=$(($exit_code + 1)) exit_code=$(($exit_code + 1))
fi fi
fi
done done
if [[ $exit_code -gt 255 ]]; then if [[ $exit_code -gt 255 ]]; then