Skip to content

Commit

Permalink
ci: Add validation for Copyright headers
Browse files Browse the repository at this point in the history
Strictly enforce up-to-date copyright headers using CI/CD.
  • Loading branch information
Xaymar committed Mar 1, 2023
1 parent 4666ff5 commit b71a9e1
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/validate.yml
@@ -0,0 +1,35 @@
# AUTOGENERATED COPYRIGHT HEADER START
# Copyright (C) 2020-2023 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
# AUTOGENERATED COPYRIGHT HEADER END

name: Validate Pull Request

on:
pull_request:
branches:
- '*'

concurrency:
group: validate-${{ github.ref_name }}
cancel-in-progress: true

jobs:
validate:
name: "Pull Request Validation"
strategy:
fail-fast: true
runs-on: "ubuntu-22.04"
steps:
- name: "Clone"
uses: actions/checkout@v3
with:
submodules: false
fetch-depth: 0

- name: "Copyright Headers"
shell: bash
run: |
node "tools/copyright.js" .
git --no-pager diff --patch --minimal HEAD --
git update-index --refresh
git diff-index --quiet HEAD --

0 comments on commit b71a9e1

Please sign in to comment.