这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@mbg
Copy link
Member

@mbg mbg commented Nov 12, 2025

This has been failing for a while. The first commit should fix the issue that caused it to fail, while the others are slight improvements.

Risk assessment

For internal use only. Please select the risk level of this change:

  • Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.

Which use cases does this change impact?

CI only.

How did/will you validate this change?

CI.

If something goes wrong after this change is released, what are the mitigation and rollback strategies?

  • Rollback - Change can only be disabled by rolling back the release or releasing a new version with a fix.

How will you know if something goes wrong after this change is released?

CI.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Consider adding a changelog entry for this change.
  • Confirm the readme and docs have been updated if necessary.

Copilot AI review requested due to automatic review settings November 12, 2025 15:10
@mbg mbg requested a review from a team as a code owner November 12, 2025 15:10
@github-actions github-actions bot added the size/XS Should be very easy to review label Nov 12, 2025
Copilot finished reviewing on behalf of mbg November 12, 2025 15:12
Copy link
Contributor

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 PR fixes a failing workflow that updates supported GitHub Enterprise Server versions. The main fix adds the missing npm ci step before npm run build, while additional improvements include enabling workflow testing via pull requests, optimizing repository checkout with sparse-checkout, and refactoring the commit/PR creation logic into separate steps.

Key Changes

  • Added npm ci before npm run build to ensure dependencies are installed
  • Split commit preparation and PR creation into separate steps with conditional logic to prevent PR creation during pull_request workflow runs
  • Added pull_request trigger to enable testing workflow changes in PRs

repository: github/enterprise-releases
token: ${{ secrets.ENTERPRISE_RELEASE_TOKEN }}
path: ${{ github.workspace }}/enterprise-releases/
sparse-checkout: releases.json
Copy link

Copilot AI Nov 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sparse-checkout parameter should be an array, not a string. According to the actions/checkout documentation, sparse-checkout expects a list of patterns, one per line.

Should be:

sparse-checkout: |
  releases.json
Suggested change
sparse-checkout: releases.json
sparse-checkout: |
releases.json

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@henrymercer henrymercer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks! We should also look at reporting failures so we notice if a scheduled workflow starts failing in the future.

@mbg mbg enabled auto-merge November 12, 2025 15:23
@mbg mbg merged commit ba454b8 into main Nov 12, 2025
248 checks passed
@mbg mbg deleted the mbg/ci/fix-enterprise-workflow branch November 12, 2025 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Should be very easy to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants