SPB Git

Repository Public

header-check.yml 1.4 KB 31 lines yaml

1# =============================================================================2# SP BOUCHER | SOURCE FILE3# =============================================================================4# Project      : SP Boucher Source Governance5# File         : integrations/ci/header-check.yml6# Author       : Simon-Pierre Boucher | https://spboucher.ai7# Contact      : dev@spboucher.ai8# Copyright    : (c) 2026 Simon-Pierre Boucher9# License      : None specified (no license file in this repository)10# =============================================================================11# END OF SP BOUCHER SOURCE HEADER12# =============================================================================1314# Gitea Actions / GitHub Actions job (same syntax). Needs no credentials.15# Copy to .gitea/workflows/ or .github/workflows/ only where a runner exists.16name: source-headers17on: [push, pull_request]18jobs:19  spb-header:20    runs-on: ubuntu-latest21    steps:22      - uses: actions/checkout@v423      - uses: actions/setup-python@v524        with: { python-version: "3.12" }25      - name: Fetch the governance engine26        run: git clone --depth 1 "${SPB_GOVERNANCE_URL:?set SPB_GOVERNANCE_URL to the spb-source-governance repository}" /tmp/spb-governance27        env:28          SPB_GOVERNANCE_URL: ${{ vars.SPB_GOVERNANCE_URL }}29      - name: Check headers30        run: PYTHONPATH=/tmp/spb-governance python3 -m spbheader check --repo .31
Files main
Menu

Theme