Skip to content

Commit

Permalink
add github actions to check file headers
Browse files Browse the repository at this point in the history
  • Loading branch information
janiceblue committed Sep 20, 2024
1 parent eff93c7 commit 3f6bbe7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/headers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: headers
run-name: License headers check by ${{ github.actor }}

on: [push, pull_request]

jobs:
header-checks:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check License Header
uses: apache/skywalking-eyes/header@main
14 changes: 14 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
header:
license:
spdx-id: MIT
content: |
Copyright (c) Meta Platforms, Inc. and affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
paths-include:
- "**/*.py"
- "**/*.sh"

comment: never

0 comments on commit 3f6bbe7

Please sign in to comment.