Skip to content

🩹 [Patch]: Align WorkingDirectory usage in workflows #7

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 5 commits into from
Mar 1, 2025
Merged

Conversation

MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Feb 28, 2025

Description

This pull request includes changes to ensure consistency in setting the WorkingDirectory parameter and improve the handling of paths in the script.

Changes to workflows

  • .github/workflows/Action-Test.yml:
    • Consistently set the WorkingDirectory parameter for different job configurations to ensure the correct directory is used in each case.

Documentation update

  • README.md:
    • Updated the Path parameter in the Invoke PSScriptAnalyzer job to use src instead of ${{ github.workspace }} aligning with the change of adding a WorkingDirectory.

Script improvement

  • scripts/main.ps1:
    • Improved the handling of the Path parameter by adding a check for an empty string and defaulting to '.' if empty, ensuring the script resolves the correct path.

Type of change

  • 📖 [Docs]
  • 🪲 [Fix]
  • 🩹 [Patch]
  • ⚠️ [Security fix]
  • 🚀 [Feature]
  • 🌟 [Breaking change]

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@MariusStorhaug MariusStorhaug merged commit b4712e1 into main Mar 1, 2025
17 checks passed
@MariusStorhaug MariusStorhaug deleted the fix branch March 1, 2025 09:19
@MariusStorhaug MariusStorhaug changed the title 🩹 [Patch]: Align WorkingDirectory usage in workflows and update pat… 🩹 [Patch]: Align WorkingDirectory usage in workflows Mar 1, 2025
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