| name: License Template Check |
| |
| on: |
| pull_request: |
| types: [synchronize, opened, reopened, ready_for_review] |
| |
| permissions: |
| contents: read |
| |
| # cancel previous workflow jobs for PRs |
| concurrency: |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} |
| cancel-in-progress: true |
| |
| jobs: |
| license_check: |
| name: License Check |
| runs-on: ubuntu-24.04 |
| steps: |
| - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
| with: |
| persist-credentials: false |
| submodules: recursive |
| - name: Setup Java |
| uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287 # v5.3.0 |
| with: |
| distribution: "temurin" |
| java-version: "11" |
| - name: Run license check |
| run: ./scripts/check_license.sh |