Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

stacklit-action

Keep your Stacklit codebase index (stacklit.json + DEPENDENCIES.md) up to date automatically via GitHub Actions.

Modes

ModeBehavior
auto-commit (default)Regenerates the index and commits any changes back to the branch
checkFails the workflow if the index is stale - useful for PRs

Usage

Auto-commit on push

Regenerate and commit the index whenever code changes land on main:

name: Update stacklit indexon:
push:
branches: [main]paths-ignore: ['stacklit.json', 'DEPENDENCIES.md', '**.md']jobs:
stacklit:
runs-on: ubuntu-latestpermissions:
contents: writesteps:
- uses: actions/checkout@v4
- uses: glincker/stacklit-action@v1

Check mode (PR gate)

Fail the PR if the index wasn't updated:

name: Check stacklit indexon: [pull_request]jobs:
stacklit:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v4
- uses: glincker/stacklit-action@v1with:
mode: check

Inputs

InputDefaultDescription
modeauto-commitauto-commit or check
versionlatestStacklit version (e.g. v0.3.0)
args""Extra args for stacklit generate

Permissions

Auto-commit mode requires permissions: contents: write on the job.

License

MIT

About

Keep your AI-agent codebase index up to date automatically

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors