File tree Expand file tree Collapse file tree 1 file changed +35
-8
lines changed
Expand file tree Collapse file tree 1 file changed +35
-8
lines changed Original file line number Diff line number Diff line change 88
99jobs :
1010 checker :
11- uses : qualcomm-linux/qli-actions/.github/workflows/multi-checker.yml@main
12- with :
13- repolinter : true # default: true
14- semgrep : true # default: true
15- copyright-license-detector : true # default: true
16- pr-check-emails : true # default: true
11+ uses : qualcomm-linux/qli-actions/.github/workflows/qualcomm-organization-repolinter.yml@main
1712
18- secrets :
19- SEMGREP_APP_TOKEN : ${{ secrets.SEMGREP_APP_TOKEN }}
13+ Copyright-License-Detector :
14+ if : ${{ contains('pull_request_target', github.event_name) && github.event.action != 'closed' ) }}
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout PR head
18+ uses : actions/checkout@v3
19+ with :
20+ fetch-depth : 0 # Full history so we can diff properly
21+ ref : ${{ github.event.pull_request.head.ref }}
22+ repository : ${{ github.event.pull_request.head.repo.full_name }}
23+
24+ - name : Add PR base repo as remote and fetch it
25+ run : |
26+ git remote add upstream https://github.com/${{ github.event.pull_request.base.repo.full_name }}.git
27+ git fetch upstream
28+
29+ - name : Generate final patch between base and head
30+ run : |
31+ git diff upstream/${{ github.event.pull_request.base.ref }} > pr.patch
32+ head -n 100 pr.patch
33+
34+ - name : Run copyright/license detector
35+ uses : qualcomm/copyright-license-checker-action@main
36+ with :
37+ patch_file : pr.patch
38+ repo_name : ${{ github.repository }}
39+
40+ PR-Check-Emails :
41+ runs-on : ubuntu-latest
42+ steps :
43+ - name : Checkout code
44+ uses : actions/checkout@v4
45+ - name : Check PR emails
46+ uses : qualcomm/commit-emails-check-action@main
You can’t perform that action at this time.
0 commit comments