mirror of
https://github.com/ivuorinen/actions.git
synced 2026-03-21 04:01:14 +00:00
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:
@@ -99,3 +99,4 @@ repos:
|
|||||||
rev: v0.8.0
|
rev: v0.8.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: action-validator
|
- id: action-validator
|
||||||
|
files: '(^\.github/workflows/.*\.ya?ml$|.*/action\.ya?ml$)'
|
||||||
|
|||||||
3
Makefile
3
Makefile
@@ -332,7 +332,8 @@ lint-actions: ## Validate GitHub Actions workflows and action.yml files
|
|||||||
exit 1; \
|
exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
else \
|
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
|
fi
|
||||||
|
|
||||||
# Check targets
|
# Check targets
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
name: Language Version Detect
|
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.'
|
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'
|
author: 'Ismo Vuorinen'
|
||||||
deprecated: true
|
|
||||||
|
|
||||||
branding:
|
branding:
|
||||||
icon: code
|
icon: code
|
||||||
|
|||||||
Reference in New Issue
Block a user