-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.4 KB
/
shared-check-license.yaml
File metadata and controls
43 lines (38 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# A license check workflow for the legacy cadix licenser
name: Run License Check
on:
workflow_call:
inputs:
runtime_version:
description: 'The default Java runtime version to run builds on'
required: false
type: number
default: 17
publishing_branch_regex:
description: 'The regular expression to determine if a certain branch build should be published'
required: false
type: string
default: 'master|main|trunk|(\d+\.(?:\d+\.)?x)'
extra_gradle_params:
description: 'Extra arguments to pass to all Gradle invocations'
required: false
type: string
default: ''
concurrency:
group: "${{ github.workflow }}-${{ github.event.number || github.ref }}"
cancel-in-progress: true
jobs:
check:
# Only run on PRs if the source branch is on someone else's repo
if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}"
runs-on: ubuntu-latest
steps:
- name: setup
id: setup
uses: SpongePowered/.github/.github/actions/setup-java-env@master
with:
runtime_version: ${{ inputs.runtime_version }}
publishing_branch_regex: ${{ inputs.publishing_branch_regex }}
# Actually check
- name: Run Licenser Check
run: ./gradlew --continue ${{ inputs.extra_gradle_params }} licenseCheck