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

Conversation

@TravisEz13
Copy link
Member

@TravisEz13 TravisEz13 commented Apr 3, 2025

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

… environment capture, artifacts directory, bootstrap, and extracted build ZIP steps
@TravisEz13 TravisEz13 requested a review from a team as a code owner April 3, 2025 01:23
@TravisEz13 TravisEz13 added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Apr 3, 2025
@TravisEz13
Copy link
Member Author

/azp run PowerShell-CI-linux-packaging, PowerShell-Windows-Packaging-CI

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@TravisEz13 TravisEz13 merged commit f60193b into PowerShell:master Apr 3, 2025
42 of 43 checks passed
@microsoft-github-policy-service
Copy link
Contributor

microsoft-github-policy-service bot commented Apr 3, 2025

📣 Hey @@TravisEz13, how did we do? We would love to hear your feedback with the link below! 🗣️

🔗 https://aka.ms/PSRepoFeedback

@TravisEz13
Copy link
Member Author

@PowerShell/powershell-maintainers triage decision - required infrastructure change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport-7.4.x-Migrated Backport-7.5.x-Migrated CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log Compliance Related to compliance requirements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants