9 - 'CMSIS/RTOS2/Include/**'
10 - 'CMSIS/RTOS2/Source/**'
19 name: Check file header
20 runs-on: ubuntu-latest
22 - name: Calculate depth
25 echo ::set-output name=GIT_COMMITS::$((${{ github.event.pull_request.commits }} + 1))
26 - name: Checkout repository
27 uses: actions/checkout@v2
29 ref: ${{ github.event.pull_request.head.sha }}
30 fetch-depth: ${{ steps.depth.outputs.GIT_COMMITS }}
32 uses: jitterbit/get-changed-files@v1
33 - name: Check changed files
35 echo "GIT_COMMITS=${{ steps.depth.outputs.GIT_COMMITS }}"
36 echo "::add-matcher::.github/fileheader.json"
38 for changed_file in ${{ steps.files.outputs.added_modified }}; do
39 ./CMSIS/Utilities/check_header.sh -v -b HEAD~${{ github.event.pull_request.commits }} ${changed_file} || RC=1
41 echo "::remove-matcher owner=fileheader::"