ci: added licenses-csharp-mvc.yml

This commit is contained in:
Aleksandr Fedorov
2025-11-14 16:28:49 +03:00
parent 6ea0e491c7
commit a5e2b31d8a
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,35 @@
name: Licenses Csharp MVC
on:
workflow_dispatch:
push:
branches: [master, develop]
paths: ['web/documentserver-example/csharp-mvc/**']
pull_request:
branches: [master, develop]
paths: ['web/documentserver-example/csharp-mvc/**']
jobs:
licences:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.x'
- name: Restore Packages
run: dotnet restore
working-directory: ./web/documentserver-example/csharp-mvc
- 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/csharp-mvc

View File

@ -0,0 +1,13 @@
---
- - :approve
- Antlr
- :who:
:why: The BSD License
:versions: []
:when: 2025-11-07 11:55:50.254036200 Z
- - :approve
- JWT
- :who:
:why: CC0-1.0
:versions: []
:when: 2025-11-07 11:57:08.328268900 Z