Skip to content

Add GH Action to check SPDX license headers in new files. #2

Add GH Action to check SPDX license headers in new files.

Add GH Action to check SPDX license headers in new files. #2

Workflow file for this run

# SPDX-License-Identifier: Apache-2.0
---
name: Check SPDX License Headers
on:
push:
branches:
- "master"
- "[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+-stable"
pull_request:
branches:
- "master"
- "[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+-stable"
jobs:
spdx-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Run SPDX check
run: |
chmod +x ./tools/spdx-check.sh
./tools/spdx-check.sh