2023-02-19 16:33:59 +03:00
|
|
|
# Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2023-05-22 18:52:44 +03:00
|
|
|
name: check license headers
|
2023-02-19 16:33:59 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-09 16:38:19 +03:00
|
|
|
- uses: actions/checkout@v4
|
2023-02-19 16:33:59 +03:00
|
|
|
- uses: dorny/paths-filter@v2
|
|
|
|
id: filter
|
|
|
|
with:
|
|
|
|
list-files: shell
|
|
|
|
filters: |
|
|
|
|
added:
|
|
|
|
- added: '**'
|
|
|
|
- name: check header license on new files
|
|
|
|
if: ${{ steps.filter.outputs.added == 'true' }}
|
2023-06-07 16:32:36 +03:00
|
|
|
run: node ./.scripts/ci/check-license-header.js ${{ steps.filter.outputs.added_files }}
|