-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
30 lines (29 loc) · 796 Bytes
/
Copy pathaction.yml
File metadata and controls
30 lines (29 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: "ctx-audit"
description: "Audit persistent AI context files for freshness and token cost"
inputs:
strict:
description: "Exit 1 on any failure (missing required file or stale file)"
required: false
default: "true"
json:
description: "Output machine-readable JSON"
required: false
default: "false"
runs:
using: "composite"
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Run ctx-audit
shell: bash
run: |
FLAGS=""
if [ "${{ inputs.strict }}" = "true" ]; then
FLAGS="$FLAGS --strict"
fi
if [ "${{ inputs.json }}" = "true" ]; then
FLAGS="$FLAGS --json"
fi
node ${{ github.action_path }}/scripts/audit.mjs $FLAGS