Key Features
- Cross-platform support: Works on Linux, macOS, and Windows runners
- OS detection: Identifies distribution name, version, and architecture
- Tool detection: Finds installed versions of CMake, Docker, Git, Go, Java, Node.js, Python, and Rust
- Semantic versioning: Provides major/minor/patch components for each tool
- Smart outputs: Generate cache keys and conditional workflow logic
Quick Usage
- name: Detect OS and tools
id: detect
uses: https://github.com/tcpipuk/detect-versions@v1
- name: Show results
run: |
echo "OS: ${{ steps.detect.outputs.name }}"
echo "Version: ${{ steps.detect.outputs.version }}"
echo "Node.js: ${{ steps.detect.outputs.node_version }}"What's Changed
- Initial stable release with comprehensive OS and tool detection
- Support for multiple Linux distributions, macOS, and Windows
- Semantic version parsing for 8 popular development tools
- Robust fallback detection methods for reliable cross-platform operation
Source
This project is developed and maintained at: https://git.tomfos.tr/actions/detect-versions