Skip to content

fix(ci): use github token for UI CI/CD #107

fix(ci): use github token for UI CI/CD

fix(ci): use github token for UI CI/CD #107

# Copyright (c) Ultraviolet
# SPDX-License-Identifier: Apache-2.0
name: Check License Header
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check-license:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check License Header
run: |
CHECK=$(grep -rcL --exclude-dir={.git,build} \
--exclude=\*.{crt,key,pem,zed,md,mod,sum,tmpl,txt,in,desc,service,json,svg} \
--exclude=LICENSE \
--regexp "Copyright (c) Ultraviolet\|Copyright (c) Abstract Machines" .)
if [ "$CHECK" ]; then
echo "License header check failed. Fix the following files:"
echo "$CHECK"
exit 1
fi