Skip to content

Update knowlenge

Update knowlenge #18

Workflow file for this run

name: Validate Action
# This workflow validates that the action.yml is properly structured
# Note: This repository contains only the action definition, not a full pnpm monorepo,
# so we cannot run the action itself here. This workflow just validates the metadata.
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
validate-action:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Validate action.yml structure
run: |
echo "Validating action.yml exists and is readable..."
if [ ! -f "action.yml" ]; then
echo "Error: action.yml not found"
exit 1
fi
echo "Checking required fields..."
if ! grep -q "^name:" action.yml; then
echo "Error: 'name' field missing"
exit 1
fi
if ! grep -q "^description:" action.yml; then
echo "Error: 'description' field missing"
exit 1
fi
if ! grep -q "^runs:" action.yml; then
echo "Error: 'runs' field missing"
exit 1
fi
echo "action.yml validation passed!"
- name: Verify composite action type
run: |
echo "Verifying this is a composite action..."
if ! grep -A 1 "^runs:" action.yml | grep -q "using: \"composite\""; then
echo "Error: Not a composite action"
exit 1
fi
echo "Composite action type confirmed!"
- name: Display action info
run: |
echo "Action Name: $(grep '^name:' action.yml | cut -d'"' -f2)"
echo "Action Description: $(grep '^description:' action.yml | cut -d'"' -f2)"
echo "Validation complete - action is ready to use!"
echo ""
echo "To use this action in your repository:"
echo " - uses: ProverCoderAI/action-release@v1"
echo " with:"
echo " ref: \${{ github.sha }}"
echo " github_token: \${{ secrets.GITHUB_TOKEN }}"