ci: Add license header check for pull requests

Co-Authored-By: OpenSauce <48618519+opensauce04@users.noreply.github.com>
This commit is contained in:
Briar 2025-04-01 18:52:22 +02:00
parent 3bdda3ea50
commit 345a2af636
2 changed files with 69 additions and 0 deletions

22
.github/workflows/license-header.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: eden-license
on:
pull_request:
branches: [ master ]
jobs:
license-header:
runs-on: ubuntu-latest
container:
image: opensauce04/lime3ds-build:latest
options: -u 1001
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch master branch
run: git fetch origin master:master
- name: Make script executable
run: chmod +x ./.ci/license-header.rb
- name: Check license headers
run: ./.ci/license-header.rb