fix(lint): resolve action-validator failure on language-version-detect

- Remove unsupported `deprecated: true` from language-version-detect/action.yml
  (deprecation already communicated via description field)
- Scope action-validator pre-commit hook to workflow and action.yml files only
- Make missing pre-commit a hard error in lint-actions target
This commit is contained in:
2026-03-20 12:34:56 +02:00
parent 195b5a35b3
commit 08773dea53
3 changed files with 3 additions and 2 deletions

View File

@@ -99,3 +99,4 @@ repos:
rev: v0.8.0
hooks:
- id: action-validator
files: '(^\.github/workflows/.*\.ya?ml$|.*/action\.ya?ml$)'

View File

@@ -332,7 +332,8 @@ lint-actions: ## Validate GitHub Actions workflows and action.yml files
exit 1; \
fi; \
else \
echo "$(YELLOW)⚠️ pre-commit not found, skipping action-validator$(RESET)"; \
echo "$(RED) pre-commit not found. Install it via 'make install-tools' before linting$(RESET)"; \
exit 1; \
fi
# Check targets

View File

@@ -5,7 +5,6 @@
name: Language Version Detect
description: 'DEPRECATED: This action is deprecated. Inline version detection directly in your actions instead. Detects language version from project configuration files with support for PHP, Python, Go, and .NET.'
author: 'Ismo Vuorinen'
deprecated: true
branding:
icon: code