Make GitHub Workflows work in the internal mirror by TravisEz13 · Pull Request #25275 · PowerShell/PowerShell

PR Summary

This pull request includes several changes to GitHub Actions workflows and the build.psm1 script to improve logging, environment detection, and path filtering. The most important changes are summarized below:

GitHub Actions Workflows Improvements:

Workflow Configuration Updates:

  • .github/workflows/linux-ci.yml, .github/workflows/macos-ci.yml, .github/workflows/windows-ci.yml: Added github-mirror branch to the list of branches to trigger the workflows and updated permissions to include contents: read. Also, replaced the dorny/paths-filter action with the new path-filters composite action. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Build Script Enhancements:

  • build.psm1: Added support for Ubuntu 22.04 and 24.04 in the environment detection function and improved logging with Write-LogGroup functions to group log messages and support GitHub Actions log grouping. [1] [2] [3] [4]

PR Context

  1. Removed use of 3rd party actions in key workflows so the workflows can be used in internal mirrors
    • wrote simplified version of these workflows
  2. Added branch names for our internal mirror.
  3. Added helpers to write log groups to GitHub workflows

PR Checklist