From 4b7c7a7f52ea156c12be327ad563df84f9bae8c7 Mon Sep 17 00:00:00 2001 From: MobiTikula Date: Mon, 2 Sep 2024 15:11:28 +0200 Subject: [PATCH] Bug fix for integration CI testing. --- action.yml | 5 +---- living_documentation_generator/utils/utils.py | 11 +++-------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/action.yml b/action.yml index ec7775f..ece267b 100644 --- a/action.yml +++ b/action.yml @@ -31,9 +31,6 @@ branding: runs: using: 'composite' steps: - - uses: actions/setup-python@v5.1.1 - with: - python-version: '3.11' - name: Install Python dependencies run: | @@ -51,7 +48,7 @@ runs: env: INPUT_GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }} INPUT_REPOSITORIES: ${{ inputs.repositories }} - INPUT_PROJECT_STATE_MINING: ${{ inputs.project_state_mining }} + INPUT_PROJECT_STATE_MINING: ${{ inputs.project-state-mining }} INPUT_VERBOSE_LOGGING: ${{ inputs.verbose-logging }} INPUT_OUTPUT_PATH: ${{ inputs.output-path }} diff --git a/living_documentation_generator/utils/utils.py b/living_documentation_generator/utils/utils.py index 40b09b0..b61e994 100644 --- a/living_documentation_generator/utils/utils.py +++ b/living_documentation_generator/utils/utils.py @@ -95,15 +95,11 @@ def set_action_output(name: str, value: str, default_output_path: str = "default @param default_output_path: The default file path to which the output is written if the @return: None """ - output_file = os.getenv("GITHUB_OUTPUT", default_output_path) - with open(output_file, "a", encoding="utf-8") as f: - # Write the multiline output to the file - f.write(f"{name}< None: """ Set the action as failed with the provided message. @@ -111,6 +107,5 @@ def set_action_failed(message: str) -> None: @param message: The error message to display. @return: None """ - # TODO: might need a print value to work: check again at Integration testing logger.error("::error:: %s", message) sys.exit(1)