Skip to content

v1.0.1

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 26 Apr 13:15
0605bcb

🩹 [Patch]: Get package from GitHub release for Linux and macOS

This release updates the PowerShell installation process to streamline installation logic for different operating systems, using the GitHub releases on the PowerShell repository as source.

Improvements to installation logic

  • Linux installation process:
    • Replaced APT-specific logic with a more generic approach to support both Debian/Ubuntu and RHEL/Fedora/CentOS distributions. Added architecture detection to determine the appropriate package format (.deb or .rpm).
    • Enhanced error handling for unsupported Linux distributions.
  • macOS installation process:
    • Simplified version resolution logic for case-insensitive matching of the "latest" keyword.
    • Improved architecture detection and package download logic for macOS.
  • Windows installation process:
    • Added better logging for detected and requested versions. Improved error handling for download failures.

Enhancements to logging

  • Added logs to display the currently installed PowerShell version or indicate if it is not installed. This applies to all platforms (Linux, macOS, and Windows).
  • Included messages for successful installations and download URLs for better traceability.

Code consistency and maintainability

  • Introduced working-directory: ${{ github.action_path }} for all steps to ensure consistent execution paths.
  • Removed redundant or outdated logic, such as Homebrew-specific handling on macOS and APT-specific handling on Linux, in favor of a unified approach.