From f2d498343c9946f704e63493a4943c3698cdac87 Mon Sep 17 00:00:00 2001 From: Luca Colagrande Date: Fri, 27 Sep 2024 18:18:04 +0200 Subject: [PATCH] test error shows in CI --- action.yml | 4 ++-- list-make-prerequisites.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 6c1d890..0680124 100644 --- a/action.yml +++ b/action.yml @@ -34,7 +34,7 @@ runs: shell: bash working-directory: ${{ inputs.working-directory }} run: | - hash=$(${GITHUB_ACTION_PATH}/list-make-prerequisites.py ${{ inputs.target }} ${{ inputs.flags }} --hash 2>/dev/null) - prerequisites=$(${GITHUB_ACTION_PATH}/list-make-prerequisites.py ${{ inputs.target }} ${{ inputs.flags }} 2>/dev/null | xargs) + hash=$(${GITHUB_ACTION_PATH}/list-make-prerequisites.py ${{ inputs.target }} ${{ inputs.flags }} --hash) + prerequisites=$(${GITHUB_ACTION_PATH}/list-make-prerequisites.py ${{ inputs.target }} ${{ inputs.flags }} | xargs) echo "hash=$hash" >> $GITHUB_OUTPUT echo "prerequisites=$prerequisites" >> $GITHUB_OUTPUT diff --git a/list-make-prerequisites.py b/list-make-prerequisites.py index 7836625..4dd2b04 100755 --- a/list-make-prerequisites.py +++ b/list-make-prerequisites.py @@ -152,6 +152,7 @@ def hash_files(file_list): if __name__ == "__main__": + raise ValueError("Testing error appears in CI.") args = parse_args() prerequisites = list_prerequisites(args.target, recursive=args.recursive, debug=args.debug)