Skip to content

Update GitHub Actions to work in private GitHub repo #25197

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 3 commits into from
Mar 22, 2025

Conversation

TravisEz13
Copy link
Member

This pull request includes several changes to the GitHub Actions workflows to improve conditional execution and update workflow references. The most important changes include adding conditional checks based on the repository owner and updating workflow references to specific versions.

Conditional execution based on repository owner:

Updating workflow references:

Additionally, the .github/workflows/backport.yml file has been removed entirely.

@TravisEz13 TravisEz13 requested a review from a team as a code owner March 18, 2025 23:12
@TravisEz13 TravisEz13 added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Mar 18, 2025
@TravisEz13 TravisEz13 requested review from Copilot and removed request for a team March 18, 2025 23:13
Copy link
Contributor

@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 pull request updates several GitHub Actions workflows so that they run only when the repository owner meets specific criteria and updates workflow references from the default branch name to a versioned tag. The changes ensure that workflows execute only in appropriate repository contexts and reference a specific release version rather than the master branch.

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/macos-ci.yml Added owner condition to the change detection job and updated ready-to-merge reference.
.github/workflows/windows-ci.yml Added owner condition to the change detection job and updated ready-to-merge reference.
.github/workflows/linux-ci.yml Added owner condition to the change detection job and updated ready-to-merge reference.
.github/workflows/AssignPrs.yml Added an if condition to restrict execution based on repository owner.
.github/workflows/scorecards.yml Added an if condition to restrict execution based on repository owner.
.github/workflows/processReminders.yml Added an if condition to restrict execution based on repository owner.
.github/workflows/markdownLink.yml Added an if condition to restrict execution based on repository owner.
Files not reviewed (1)
  • .github/workflows/backport.yml: Language not supported

@TravisEz13
Copy link
Member Author

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

Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@TravisEz13 TravisEz13 merged commit b6876db into PowerShell:master Mar 22, 2025
36 checks passed
@TravisEz13 TravisEz13 deleted the version-actions branch March 22, 2025 23:22
Copy link
Contributor

microsoft-github-policy-service bot commented Mar 22, 2025

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

🔗 https://aka.ms/PSRepoFeedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BackPort-7.4.x-Done Backport-7.5.x-Migrated CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants