Skip to content

ci: add license checking hook and job using google/addlicense #23

ci: add license checking hook and job using google/addlicense

ci: add license checking hook and job using google/addlicense #23

Workflow file for this run

name: Pull Request Title Check
on:
pull_request_target:
types:
- opened
- reopened
- edited
jobs:
check_pr_title:
name: Check PR Title
runs-on: ubuntu-latest
steps:
- uses: thehanimo/pr-title-checker@v1.4.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
github_configuration_owner: 'krogerco'
github_configuration_repo: 'Shared-CI-Workflow-Android'
github_configuration_path: '.github/config/pr-title-checker-config.json'
github_configuration_ref: 'v1.0.0'
check_licenses:
name: Check License Headers
runs-on: ubuntu-latest
steps:
- name: Run addlicense
uses: docker://google/addlicense:v1.2.0
with:
args: -v -f LICENSE $(find . -path "*/src/*" \( -name "*.java" -o -name "*.kt" -o -name "*.kts" \) -type f)