Merge pull request #1 from CodeBoarding/codeboarding/setup-action #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CodeBoarding sync | |
| on: | |
| push: | |
| branches: ['dev'] | |
| # Loop guard: don't re-trigger on the files this workflow itself commits. | |
| # List generated files only: user-authored scope configuration must still trigger | |
| # regeneration, while a merged sync PR must not trigger a loop. | |
| paths-ignore: | |
| - '.codeboarding/*.md' | |
| - '.codeboarding/analysis.json' | |
| - '.codeboarding/fingerprint.json' | |
| - '.codeboarding/static_analysis.pkl' | |
| - '.codeboarding/static_analysis.sha' | |
| - '.codeboarding/codeboarding_version.json' | |
| - '.codeboarding/health/health_report.json' | |
| - 'docs/development/architecture.md' | |
| workflow_dispatch: | |
| inputs: | |
| force_full: | |
| description: 'Ignore the committed baseline and rebuild it from scratch (full analysis).' | |
| type: boolean | |
| required: false | |
| default: false | |
| permissions: | |
| contents: write # commit the generated baseline + docs to the branch | |
| id-token: write # identifies this repo to CodeBoarding's hosted tier, used by the free | |
| # tier AND a license, and as the fallback until your own key exists | |
| concurrency: | |
| # Serialize against itself so a push landing mid-run can't make two commits. | |
| group: codeboarding-sync | |
| cancel-in-progress: false | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: CodeBoarding/CodeBoarding-action@v1 | |
| with: | |
| mode: sync | |
| force_full: ${{ inputs.force_full || false }} | |
| target_branch: 'dev' | |
| # CodeBoarding's free hosted tier. No secret to add: the run authenticates | |
| # with the GitHub OIDC token that `id-token: write` above grants. | |
| llm: hosted |