2024-01-29 18:18:50 -05:00
|
|
|
name: License Template Check
|
2022-07-01 14:18:04 -04:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2024-01-23 23:30:53 -05:00
|
|
|
types: [synchronize, opened, reopened, ready_for_review]
|
2022-07-01 14:18:04 -04:00
|
|
|
|
2024-02-01 10:08:41 -05:00
|
|
|
# cancel previous workflow jobs for PRs
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-07-01 14:18:04 -04:00
|
|
|
jobs:
|
|
|
|
license_check:
|
|
|
|
name: License Check
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
2024-02-01 13:56:33 -05:00
|
|
|
uses: actions/checkout@v4
|
2022-07-01 14:18:04 -04:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
submodules: recursive
|
|
|
|
- name: Setup Java
|
2024-02-01 11:59:29 -05:00
|
|
|
uses: actions/setup-java@v4
|
2022-07-01 14:18:04 -04:00
|
|
|
with:
|
2024-02-01 11:59:29 -05:00
|
|
|
distribution: 'temurin'
|
|
|
|
java-version: '11'
|
2022-07-01 14:18:04 -04:00
|
|
|
- name: Run license check
|
|
|
|
run: ./scripts/check_license.sh
|