Skip to content

CI: allow non-standard signature #2

CI: allow non-standard signature

CI: allow non-standard signature #2

Workflow file for this run

# This is a basic workflow to help you get started with Actions

Check failure on line 1 in .github/workflows/checkpatch.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/checkpatch.yml

Invalid workflow file

(Line: 34, Col: 11): A mapping was not expected
name: checkpatch review
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main", "next" ]
pull_request:
branches: [ "main", "next" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
my_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: "find"
run: find .
- name: Run checkpatch review
uses: webispy/checkpatch-action@v9
with:
env:
CHECKPATCH_COMMAND: ./zephyr/scripts/checkpatch.pl