mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
ci: added licenses-spring.yml
This commit is contained in:
38
.github/workflows/licenses-spring.yml
vendored
Normal file
38
.github/workflows/licenses-spring.yml
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
name: Licenses Java Spring
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches: [master, develop]
|
||||||
|
paths: ['web/documentserver-example/java-spring/**']
|
||||||
|
pull_request:
|
||||||
|
branches: [master, develop]
|
||||||
|
paths: ['web/documentserver-example/java-spring/**']
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
licences:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Install Java 11
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: '11'
|
||||||
|
- name: Check Licenses
|
||||||
|
run: |
|
||||||
|
rm mvnw
|
||||||
|
rm mvnw.cmd
|
||||||
|
working-directory: ./web/documentserver-example/java-spring
|
||||||
|
- name: Get Repository License
|
||||||
|
id: license
|
||||||
|
run: |
|
||||||
|
license="${{ (github.event.repository.license.spdx_id) || (github.event.repository.licenses[0]) }}"
|
||||||
|
echo "License detected: $license"
|
||||||
|
echo "license=$license" >> $GITHUB_OUTPUT
|
||||||
|
- name: Check Licenses
|
||||||
|
uses: ONLYOFFICE/check-licenses@v1
|
||||||
|
with:
|
||||||
|
project_license: ${{ steps.license.outputs.license }}
|
||||||
|
working_directory: ./web/documentserver-example/java-spring
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
- - :approve
|
||||||
|
- h2
|
||||||
|
- :who:
|
||||||
|
:why: MPL 2.0 or EPL 1.0
|
||||||
|
:versions: []
|
||||||
|
:when: 2025-11-07 09:55:31.982492900 Z
|
||||||
Reference in New Issue
Block a user