qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

format_push.yml (1372B)


      1 name: Lint Format
      2 
      3 permissions:
      4   contents: read
      5 
      6 on:
      7   push:
      8     branches:
      9     - master
     10     - develop
     11 
     12 jobs:
     13   lint:
     14     runs-on: ubuntu-latest
     15 
     16     container: ghcr.io/qmk/qmk_cli
     17 
     18     steps:
     19     - name: Disable safe.directory check
     20       run : git config --global --add safe.directory '*'
     21 
     22     - uses: actions/checkout@v6
     23       with:
     24         fetch-depth: 0
     25 
     26     - name: Disable automatic eol conversion
     27       run: |
     28         echo "* -text" > .git/info/attributes
     29 
     30     - name: Install dependencies
     31       run: |
     32         pip3 install -r requirements-dev.txt
     33 
     34     - name: Run qmk formatters
     35       shell: 'bash {0}'
     36       run: |
     37         qmk format-c -a
     38         qmk format-python -a
     39         qmk format-text -a
     40         git diff
     41 
     42     - uses: rlespinasse/github-slug-action@v5
     43 
     44     - name: Become QMK Bot
     45       run: |
     46         git config user.name 'QMK Bot'
     47         git config user.email 'hello@qmk.fm'
     48 
     49     - name: Create Pull Request
     50       uses: peter-evans/create-pull-request@v8
     51       if: ${{ github.repository == 'qmk/qmk_firmware'}}
     52       with:
     53         token: ${{ secrets.QMK_BOT_TOKEN }}
     54         delete-branch: true
     55         branch: bugfix/format_${{ env.GITHUB_REF_SLUG }}
     56         author: QMK Bot <hello@qmk.fm>
     57         committer: QMK Bot <hello@qmk.fm>
     58         commit-message: Format code according to conventions
     59         title: '[CI] Format code according to conventions'