-versionnow outputs how the executable was installed.- Fix errors output to stdout was not colorful on Windows.
- Add new
-colorflag to force to enable colorful outputs. This is useful when running actionlint on GitHub Actions since scripts atrun:don't enable colors. Linter.LintFilesandLinter.LintFilemethods takeprojectparameter to explicitly specify what project the files belong to. Leaving itnilautomatically detects projects from their file paths.LintOptions.NoColoris replaced byLintOptions.Color.
Example of -version output:
$ brew install actionlint
$ actionlint -version
1.3.0
downloaded from release page
$ go install github.com/rhysd/actionlint/cmd/actionlint@v1.3.0
go: downloading github.com/rhysd/actionlint v1.3.0
$ actionlint -version
v1.3.0
built from source
Example of running actionlint on GitHub Actions forcing to enable color output:
- name: Check workflow files
run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
./actionlint -color
shell: bash