Skip to content

Commit

Permalink
ci: Add a license check
Browse files Browse the repository at this point in the history
  • Loading branch information
akirak committed Jan 19, 2025
1 parent 758905d commit 7d692dd
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Check license

on:
pull_request:
# This ignore list does not cover the entire set of irrelevant files, but it
# saves resources in many cases.
paths-ignore:
- '.github/**'
- '*.md'
- '**/*.lock'
- '**/*.json'

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: tj-actions/changed-files@v45
id: changed-files
with:
files_ignore_yaml: |
.:
- '*.md'
- '**/*.lock'
- '**/*.json'
.github:
- '**'
dev:
- '**'
doc:
- '*.*'
- uses: cachix/install-nix-action@v30

- run: nix profile install nixpkgs#reuse

- name: Check license
run: 'reuse lint-file ${{ steps.changed-files.outputs.changed_files }}'

0 comments on commit 7d692dd

Please sign in to comment.