Skip to content

Commit

Permalink
Move license header check into its own workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Feb 3, 2025
1 parent dcf3bef commit de3eaaa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/pr_ci_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,3 @@ jobs:
. .venv/bin/activate
python ./backend/manage.py makemigrations
python ./backend/manage.py migrate
- name: Check License Header
uses: apache/skywalking-eyes/header@main
3 changes: 0 additions & 3 deletions .github/workflows/pr_ci_frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,3 @@ jobs:
if: always()
working-directory: ./frontend
run: sudo yarn test

- name: Check License Header
uses: apache/skywalking-eyes/header@main
14 changes: 14 additions & 0 deletions .github/workflows/pr_ci_license_header_check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: pr_ci_license_header_check
on:
pull_request:
branches:
- main
types: [opened, reopened, synchronize]

jobs:
frontend:
name: Run PR License Header Check
runs-on: ubuntu-latest
steps:
- name: Check License Header
uses: apache/skywalking-eyes/header@main
2 changes: 1 addition & 1 deletion .licenserc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
header:
header:
license:
content: "SPDX-License-Identifier: AGPL-3.0-or-later"
paths:
Expand Down

0 comments on commit de3eaaa

Please sign in to comment.