v1.3.0
-version
now outputs how the executable was installed.- Fix errors output to stdout was not colorful on Windows.
- Add new
-color
flag to force to enable colorful outputs. This is useful when running actionlint on GitHub Actions since scripts atrun:
don't enable colors. Linter.LintFiles
andLinter.LintFile
methods takeproject
parameter to explicitly specify what project the files belong to. Leaving itnil
automatically detects projects from their file paths.LintOptions.NoColor
is 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