-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
42 lines (36 loc) · 1.11 KB
/
action.yml
File metadata and controls
42 lines (36 loc) · 1.11 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
name: 'faneX-ID Integration Validation'
description: 'Validates faneX-ID integrations (manifest, domain, version compatibility)'
inputs:
core_version:
description: 'The core version of faneX-ID to check compatibility against (e.g., 0.1.0)'
required: false
default: ""
working_directory:
description: 'Directory to validate'
required: false
default: '.'
runs:
using: "composite"
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Dependencies
shell: bash
run: |
pip install pyyaml packaging requests pydantic
- name: Run Validation Script
shell: bash
env:
CORE_VERSION: ${{ inputs.core_version }}
TARGET_DIR: ${{ inputs.working_directory }}
run: |
# Locate the validate.py relative to the action path
SCRIPT_PATH="${{ github.action_path }}/validate.py"
CMD="python $SCRIPT_PATH $TARGET_DIR"
if [ -n "$CORE_VERSION" ]; then
CMD="$CMD --core-version $CORE_VERSION"
fi
echo "Running: $CMD"
$CMD