From 3fc546b7d85137992aecd99d772e6574845f8637 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 24 Oct 2022 10:58:30 +0200 Subject: [PATCH] action.yml: missing bits for the initial test --- action.yml | 7 ++++++- container/cmd | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index d218da6..887f806 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/container/cmd b/container/cmd index c4e0c2d..bbf145d 100755 --- a/container/cmd +++ b/container/cmd @@ -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