Skip to content

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

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

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

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/check_spdx.sh
./tools/check_spdx.sh