Skip to content

Commit

Permalink
Added License CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Jul 3, 2023
1 parent 2359901 commit ae9347c
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/license-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This is a basic workflow to help you get started with Actions

name: License CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on: [push]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
check-license-lines:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Check License Lines
uses: kt3k/[email protected]
20 changes: 20 additions & 0 deletions .github/workflows/license-copyright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: License Check Copyright

on:
schedule:
- cron: "0 3 1 1 *"
workflow_dispatch:

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: FantasticFiasco/action-update-license-year@v2
with:
token: ${{ secrets.ACTIONS_TOKEN }}
commitTitle: 'Updated license copyright'
assignees: 'Leo-Peyronnet'
labels: documentation
11 changes: 11 additions & 0 deletions .licenserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"**/*.cs": ["/*", "MIT License", "", "Copyright (c) Léo Corporation"],
"ignore": [
"**/*.Designer.cs",
"DayBar/Properties/",
"DayBar/Ressources/",
"Xalyus Updater/Properties/",
"Xalyus Updater/Resources/",
"AssemblyInfo.cs"
]
}

0 comments on commit ae9347c

Please sign in to comment.