forked from hugegraph/hugegraph-sync
32 lines
761 B
YAML
32 lines
761 B
YAML
name: "License Checker"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- 'release-*'
|
|
pull_request:
|
|
|
|
jobs:
|
|
check-license:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
USE_STAGE: 'true' # Whether to include the stage repository.
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Check License Header
|
|
uses: apache/skywalking-eyes@main
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
log: info
|
|
token: ${{ github.token }}
|
|
config: .licenserc.yaml
|
|
|
|
- name: License Check (RAT)
|
|
run: |
|
|
mvn apache-rat:check -ntp
|
|
find ./ -name rat.txt -print0 | xargs -0 -I file cat file > merged-rat.txt
|
|
grep "Binaries" merged-rat.txt -C 3 && cat merged-rat.txt
|