-
Notifications
You must be signed in to change notification settings - Fork 7
24 lines (24 loc) · 740 Bytes
/
Copy pathmain.yml
File metadata and controls
24 lines (24 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: checkpatch review
on: [pull_request]
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@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
- name: Info
run: |
echo "Repository: $GITHUB_REPOSITORY"
echo "Workspace: $GITHUB_WORKSPACE"
pwd
ls -la `pwd`
git log --oneline --graph
- name: Run checkpatch review
uses: webispy/checkpatch-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}