-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
84 lines (69 loc) · 2.21 KB
/
action.yml
File metadata and controls
84 lines (69 loc) · 2.21 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: 'Claude Priority Validator'
description: 'Validate Claude Code plugins for compliance with marketplace standards'
author: 'ZenterFlow'
branding:
icon: 'check-circle'
color: 'green'
inputs:
plugin-path:
description: 'Path to the plugin directory to validate'
required: false
default: '.'
fail-on-error:
description: 'Fail the workflow if validation errors are found'
required: false
default: 'true'
check-naming:
description: 'Validate naming conventions (lowercase-with-hyphens)'
required: false
default: 'true'
check-json:
description: 'Validate JSON schema compliance'
required: false
default: 'true'
check-frontmatter:
description: 'Validate YAML frontmatter format'
required: false
default: 'true'
strict-mode:
description: 'Enable strict validation mode (all checks must pass)'
required: false
default: 'true'
output-format:
description: 'Output format: github, json, or text'
required: false
default: 'github'
outputs:
validation-status:
description: 'Overall validation status (pass or fail)'
value: ${{ steps.validate.outputs.validation-status }}
total-checks:
description: 'Total number of validation checks performed'
value: ${{ steps.validate.outputs.total-checks }}
passed-checks:
description: 'Number of checks that passed'
value: ${{ steps.validate.outputs.passed-checks }}
failed-checks:
description: 'Number of checks that failed'
value: ${{ steps.validate.outputs.failed-checks }}
error-messages:
description: 'Detailed error messages (if any)'
value: ${{ steps.validate.outputs.error-messages }}
runs:
using: 'composite'
steps:
- name: Validate plugin
id: validate
shell: bash
run: |
# Set output format for GitHub Actions
export OUTPUT_FORMAT="${{ inputs.output-format }}"
export GITHUB_ACTIONS=true
# Run validation script
${{ github.action_path }}/validate.sh \
"${{ inputs.plugin-path }}" \
"${{ inputs.check-naming }}" \
"${{ inputs.check-json }}" \
"${{ inputs.check-frontmatter }}" \
"${{ inputs.strict-mode }}" \
"${{ inputs.fail-on-error }}"