Skip to content

Commit

Permalink
Bug fix for integration CI testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
MobiTikula committed Sep 2, 2024
1 parent d2249ea commit 4b7c7a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
5 changes: 1 addition & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ branding:
runs:
using: 'composite'
steps:
- uses: actions/[email protected]
with:
python-version: '3.11'

- name: Install Python dependencies
run: |
Expand All @@ -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 }}

Expand Down
11 changes: 3 additions & 8 deletions living_documentation_generator/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,22 +95,17 @@ 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}<<EOF\n")
f.write(f"{value}")
f.write("EOF\n")
output_file = os.getenv('GITHUB_OUTPUT', default_output_path)
with open(output_file, 'a') as f:
f.write(f'{name}={value}\n')


# pylint: disable=fixme
def set_action_failed(message: str) -> None:
"""
Set the action as failed with the provided message.
@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)

0 comments on commit 4b7c7a7

Please sign in to comment.