36 lines
742 B
YAML
36 lines
742 B
YAML
name: "✔️ Check Licenses"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- '**/*.gradle*'
|
|
- 'gradle/**'
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- '**/*.gradle*'
|
|
- 'gradle/**'
|
|
|
|
jobs:
|
|
check-licenses:
|
|
name: Check Licenses
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: "Set up JDK 17"
|
|
id: setup-java
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '17'
|
|
- name: "Setup Gradle"
|
|
uses: gradle/actions/setup-gradle@v4
|
|
env:
|
|
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
|
|
- name: "Check licenses"
|
|
run: ./gradlew licensee
|