From a0301e7e4d0912009a59145e424e1916873b9376 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 1 May 2021 13:32:09 -0400 Subject: [PATCH] Update action.yml --- action.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/action.yml b/action.yml index 08bafb59..a7a0acc5 100644 --- a/action.yml +++ b/action.yml @@ -45,6 +45,9 @@ outputs: all_changed: description: Return true only when all files provided using the files input have all changed. value: ${{ steps.changed_files.outputs.all_changed }} + any_changed: + description: Return true only when any files provided using the files input have changed. + value: ${{ steps.changed_files.outputs.any_changed }} runs: using: 'composite' @@ -138,6 +141,12 @@ runs: else echo "::set-output name=all_changed::false" fi + + if [[ -n "$OUTPUT_ALL_MODIFIED_FILES" ]]; then + echo "::set-output name=any_changed::true" + else + echo "::set-output name=any_changed::false" + fi echo "::set-output name=added_files::$ADDED" echo "::set-output name=copied_files::$COPIED"