~ruther/qmk_firmware

045e5c9729f22a8ab8a3f22fe9c0e6b51d1940fe — QMK Bot 1 year, 1 month ago a2c23e9 + 4443fa8
Merge remote-tracking branch 'origin/master' into develop
2 files changed, 10 insertions(+), 4 deletions(-)

M .github/workflows/format.yml
M .github/workflows/lint.yml
M .github/workflows/format.yml => .github/workflows/format.yml +2 -0
@@ 36,6 36,8 @@ jobs:
    - name: Get changed files
      id: file_changes
      uses: tj-actions/changed-files@v42
      with:
        use_rest_api: true

    - name: Run qmk formatters
      shell: 'bash {0}'

M .github/workflows/lint.yml => .github/workflows/lint.yml +8 -4
@@ 28,6 28,8 @@ jobs:
    - name: Get changed files
      id: file_changes
      uses: tj-actions/changed-files@v42
      with:
        use_rest_api: true

    - name: Print info
      run: |


@@ 62,10 64,12 @@ jobs:

        qmk format-text ${{ steps.file_changes.outputs.all_changed_files}} || true
        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
        done


Do not follow this link