mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
ci: added licenses-csharp.yml
This commit is contained in:
35
.github/workflows/licenses-csharp.yml
vendored
Normal file
35
.github/workflows/licenses-csharp.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
name: Licenses Csharp
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches: [master, develop]
|
||||||
|
paths: ['web/documentserver-example/csharp/**']
|
||||||
|
pull_request:
|
||||||
|
branches: [master, develop]
|
||||||
|
paths: ['web/documentserver-example/csharp/**']
|
||||||
|
|
||||||
|
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
|
||||||
|
- 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
|
||||||
7
web/documentserver-example/csharp/.check-licenses.yml
Normal file
7
web/documentserver-example/csharp/.check-licenses.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
- - :approve
|
||||||
|
- JWT
|
||||||
|
- :who:
|
||||||
|
:why: CC0-1.0
|
||||||
|
:versions: []
|
||||||
|
:when: 2025-11-07 11:57:24.005929300 Z
|
||||||
Reference in New Issue
Block a user