-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
37 lines (35 loc) · 1.05 KB
/
Copy pathaction.yml
File metadata and controls
37 lines (35 loc) · 1.05 KB
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
31
32
33
34
35
36
37
name: Skillpack Forge
description: Verify generated AI coding agent files from skillpack.yaml.
inputs:
path:
description: Project path that contains skillpack.yaml.
required: false
default: "."
version:
description: skillpack-forge npm version to run.
required: false
default: "latest"
diff:
description: Run generated-file freshness checks.
required: false
default: "true"
strict:
description: Also fail on unexpected stale Skillpack Forge generated files.
required: false
default: "true"
runs:
using: composite
steps:
- name: Run skillpack check
if: ${{ inputs.diff == 'true' }}
shell: bash
run: |
args=()
if [ "${{ inputs.strict }}" = "true" ]; then
args+=(--strict)
fi
npx --yes "skillpack-forge@${{ inputs.version }}" check "${{ inputs.path }}" "${args[@]}"
- name: Run skillpack doctor only
if: ${{ inputs.diff != 'true' }}
shell: bash
run: npx --yes "skillpack-forge@${{ inputs.version }}" doctor "${{ inputs.path }}"