diff --git a/Dockerfile b/Dockerfile index 87361f9..f636798 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM golang:1.20.3-bullseye -ENV VERSION=v0.3.9 +ENV VERSION=v0.3.10 RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ diff --git a/action.yml b/action.yml index b8fbf3e..d2dbb9f 100644 --- a/action.yml +++ b/action.yml @@ -37,6 +37,10 @@ inputs: description: 'Specify directories to pass changed-objects command' required: false default: '' + root_marker: + description: 'A glob pattern of file that marks the root directory (e.g. *.tf). When specified, traverses parent directories to find the nearest ancestor containing a matching file.' + required: false + default: '' outputs: changes: description: 'Changed objects' diff --git a/entrypoint.sh b/entrypoint.sh index f18a505..dedb5a5 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -36,6 +36,10 @@ if [[ -n ${INPUT_DIR_EXIST} ]]; then flags+=("--dir-exist=${INPUT_DIR_EXIST}") fi +if [[ -n ${INPUT_ROOT_MARKER} ]]; then + flags+=("--root-marker=${INPUT_ROOT_MARKER}") +fi + if [[ -n ${INPUT_IGNORE} ]]; then for ig in ${INPUT_IGNORE//$'\n'/ } do