mirror of
https://github.com/ivuorinen/actions.git
synced 2026-02-01 18:41:44 +00:00
Replace common-cache wrapper with native actions/cache@v4.3.0 in all Node.js linting actions. Changes: - biome-lint: Use actions/cache with direct hashFiles() - eslint-lint: Use actions/cache with direct hashFiles() - prettier-lint: Use actions/cache with direct hashFiles() - pr-lint: Use actions/cache with direct hashFiles() All actions now use: - Native GitHub Actions cache functionality - Multi-lock-file support (npm, yarn, pnpm, bun) - Two-level restore-keys for graceful fallback - OS-aware cache keys with runner.os Benefits: - No wrapper overhead - Native hashFiles() instead of manual SHA256 - Consistent caching pattern across all Node.js actions
ivuorinen/actions/pr-lint
PR Lint
Description
Runs MegaLinter against pull requests
Inputs
| name | description | required | default |
|---|---|---|---|
token |
GitHub token for authentication |
false |
"" |
username |
GitHub username for commits |
false |
github-actions |
email |
GitHub email for commits |
false |
github-actions@github.com |
Outputs
| name | description |
|---|---|
validation_status |
Overall validation status (success/failure) |
errors_found |
Number of linting errors found |
Runs
This action is a composite action.
Usage
- uses: ivuorinen/actions/pr-lint@main
with:
token:
# GitHub token for authentication
#
# Required: false
# Default: ""
username:
# GitHub username for commits
#
# Required: false
# Default: github-actions
email:
# GitHub email for commits
#
# Required: false
# Default: github-actions@github.com