Skip to content

🪲 [Fix]: Fix setting the $ErrorView setting via inputs #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 16, 2025

Conversation

MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Jun 16, 2025

This pull request introduces changes related to the handling of the ErrorView configuration in a GitHub Actions workflow. The changes streamline the ErrorView initialization logic by removing redundant code and adding validation to ensure ErrorView is set correctly during runtime.

Changes to ErrorView handling:

  • .github/workflows/TestWorkflow.yml: Added a validation step to confirm that ErrorView is set to 'NormalView' during the workflow execution. If not, an exception is thrown.
  • action.yml: Introduced the assignment of the ErrorView environment variable from the input parameter for use in subsequent scripts.
  • scripts/init.ps1: Removed the redundant initialization and validation logic for ErrorView, as this is now handled directly in the workflow and action configuration.

@Copilot Copilot AI review requested due to automatic review settings June 16, 2025 21:31
@MariusStorhaug MariusStorhaug self-assigned this Jun 16, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a validation step in the GitHub Actions workflow to ensure that the ErrorView variable is set to NormalView.

  • Added a LogGroup block to print the ErrorView value.
  • Included logic to throw an error if the ErrorView variable is not set correctly.

@MariusStorhaug MariusStorhaug changed the title 🩹 [Patch]: Add a test for ErrorView settings 🪲 [Fix]: Fix setting the $ErrorView setting via inputs Jun 16, 2025
@MariusStorhaug MariusStorhaug merged commit 4463abf into main Jun 16, 2025
65 checks passed
@MariusStorhaug MariusStorhaug deleted the errorview branch June 16, 2025 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant