INA260 driver support 70fb84a109c639637f0636281dbdb21ed8ffb000 upstream #1904
This file contains hidden or 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
| name: Advisory checkpatch review | |
| on: [pull_request] | |
| jobs: | |
| review: | |
| name: checkpatch review | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Calculate PR commits + 1' | |
| run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> $GITHUB_ENV | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| fetch-depth: ${{ env.PR_FETCH_DEPTH }} | |
| - name: Copy checkpatch.conf | |
| run: cp ${{github.workspace}}/.github/workflows/ci_checkpatch.conf ${{github.workspace}}/.checkpatch.conf | |
| - name: Run checkpatch review | |
| uses: webispy/checkpatch-action@v9 |