Skip to content

Commit

Permalink
Lint action.yml files with actionlint, if present
Browse files Browse the repository at this point in the history
  • Loading branch information
dokempf committed May 17, 2024
1 parent c4af412 commit beaa593
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions precommend/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ def actionlint(ctx):
if ctx.directory_exists(".github/workflows"):
return "actionlint"

if ctx.filename_exists("action.yml"):
return "actionlint"


@rule
def shell_fmt_go(ctx):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ classifiers = [
dependencies = [
"click",
"identify >= 2.5.36",
"pre-commit >= 3.7.0",
"pre-commit >= 3.7.1",
"ruamel.yaml",
]

Expand Down

0 comments on commit beaa593

Please sign in to comment.