mirror of
https://github.com/tcpipuk/detect-versions.git
synced 2026-07-21 10:16:25 +00:00
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.
35 lines
878 B
YAML
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"]
|