Skip to content

Commit

Permalink
action.yml: missing bits for the initial test
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Oct 24, 2022
1 parent 5e63b6b commit 3fc546b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ branding:
icon: check-circle
color: blue

inputs:
subdirectory:
description: Sub-directory to step in, before linting is performed
required: false

runs:
using: docker
image: quay.io/copr/vcs-diff-lint:latest
image: docker://quay.io/copr/vcs-diff-lint:latest
2 changes: 1 addition & 1 deletion container/cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
git config --global --add safe.directory '*'
git config --global advice.detachedHead false
git fetch origin main:main
test -n "$SUBDIR" || cd "$SUBDIR"
test -n "$INPUT_SUBDIRECTORY" || cd "$INPUT_SUBDIRECTORY"
exec vcs-diff-lint --print-fixed-errors

0 comments on commit 3fc546b

Please sign in to comment.