detect-versions-action/.pre-commit-config.yaml
Tom Foster 876b4e05fc feat(action): implement Forgejo action to detect OS and runtime versions
A comprehensive GitHub/Forgejo action that identifies the runner's operating
system (Ubuntu, Debian, macOS, Windows) and detects installed development tools
with semantic versioning support. Provides reliable OS detection across multiple
platforms using appropriate fallback methods, plus structured outputs for
conditional workflow logic and intelligent cache key generation.

The action outputs OS details (name, version, slug, architecture) and tool
versions (CMake, Docker, Git, Go, Java, Node.js, Python, Rust) with separate
major/minor/patch components for flexible version comparisons in workflows.
2025-09-22 13:33:57 +01:00

35 lines
878 B
YAML

default_install_hook_types:
- pre-commit
- commit-msg
default_stages:
- pre-commit
- manual
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: destroyed-symlinks
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.18.1
hooks:
- id: markdownlint-cli2
args: ["--fix"]
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.2.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: ["--strict", "--force-scope", "--verbose"]