Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
b6128b9
Update version and download URLs to v0.0.246 in Homebrew formula
galiacheng Mar 18, 2026
4aa2f65
Update SHA256 checksums for macOS and Linux binaries in Homebrew formula
galiacheng Mar 18, 2026
743a9be
Update Homebrew formula to v0.0.246
github-actions[bot] Mar 18, 2026
04be792
Update Homebrew formula to v0.0.246
github-actions[bot] Mar 18, 2026
242bfde
Add GitHub Actions workflow to validate Homebrew installation
galiacheng Mar 18, 2026
b5390f3
Merge pull request #4 from galiacheng/update-homebrew-v0.0.246-202603…
galiacheng Mar 18, 2026
4b81b74
Fix Homebrew tap command to use the correct repository reference
galiacheng Mar 18, 2026
53adfc8
Merge branch 'main' of https://github.com/galiacheng/modernize-cli
galiacheng Mar 18, 2026
0f483d8
Merge pull request #5 from galiacheng/update-homebrew-v0.0.246-202603…
galiacheng Mar 18, 2026
64616f4
Remove outdated macOS Intel job from Homebrew validation workflow
galiacheng Mar 18, 2026
6436d71
Merge branch 'main' of https://github.com/galiacheng/modernize-cli
galiacheng Mar 18, 2026
4c10584
Update homepage and download URLs to point to the correct Microsoft r…
galiacheng Mar 18, 2026
fbb9e45
Add PR title and body to wingetcreate submission command
galiacheng Mar 23, 2026
c53aa8c
Merge branch 'main' of https://github.com/galiacheng/modernize-cli
galiacheng Mar 23, 2026
4d631f0
Enhance wingetcreate submission workflow to extract and log PR URL, a…
galiacheng Mar 23, 2026
bbe177d
Add issue creation step for Homebrew validation failures with detaile…
galiacheng Mar 23, 2026
4ec6fc4
Add write permissions for issues in workflow files
galiacheng Mar 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion .github/workflows/update-winget-manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
permissions:
contents: read
pull-requests: write
issues: write

runs-on: windows-latest

Expand All @@ -44,6 +45,7 @@ jobs:
echo "Version: $VERSION (tag: $TAG)"

- name: Submit package using wingetcreate
id: submit
shell: pwsh
run: |
$packageId = "GitHub.Copilot.modernization.agent"
Expand Down Expand Up @@ -86,4 +88,33 @@ jobs:
exit 1
}
$manifestPath = Split-Path $installerManifest
.\wingetcreate.exe submit $manifestPath
$output = .\wingetcreate.exe submit $manifestPath --prtitle "Update GitHub.Copilot.modernization.agent to $version" 2>&1
Write-Output $output

# Extract PR URL from output
$prUrl = ""
if ($output -match 'https://github\.com/microsoft/winget-pkgs/pull/\d+') {
$prUrl = $matches[0]
Write-Output "PR URL: $prUrl"
echo "pr_url=$prUrl" >> $env:GITHUB_OUTPUT
} else {
Write-Warning "Could not extract PR URL from output"
echo "pr_url=" >> $env:GITHUB_OUTPUT
}

- name: Create tracking issue
uses: actions/github-script@v7
with:
script: |
const prUrl = '${{ steps.submit.outputs.pr_url }}';
const body = prUrl
? `A PR has been submitted to microsoft/winget-pkgs for version ${{ steps.version.outputs.version }}.\n\nPR: ${prUrl}`
: `A PR has been submitted to microsoft/winget-pkgs for version ${{ steps.version.outputs.version }}.\n\nCheck https://github.com/microsoft/winget-pkgs/pulls for status.`;

await github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: `WinGet PR submitted for v${{ steps.version.outputs.version }}`,
body: body,
assignees: ['qianwens', 'shizhMSFT', 'galiacheng']
});
20 changes: 20 additions & 0 deletions .github/workflows/validate-homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
jobs:
validate-homebrew:
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.title, 'Update Homebrew formula')

permissions:
contents: read
issues: write

strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -41,6 +46,7 @@ jobs:
echo "Expected version: $version"

- name: Verify installation
id: verify
run: |
output=$(modernize --version)
echo "Version output: $output"
Expand All @@ -50,3 +56,17 @@ jobs:
echo "::error::Version mismatch. Expected '${{ steps.formula.outputs.version }}' in output but got: $output"
exit 1
fi

- name: Create issue on failure
if: failure()
uses: actions/github-script@v7
with:
script: |
await github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: `Homebrew validation failed on ${{ matrix.name }}`,
body: `Homebrew installation validation failed for **${{ matrix.name }}**.\n\n**PR:** #${{ github.event.pull_request.number }}\n**Expected version:** ${{ steps.formula.outputs.version }}\n**Workflow run:** ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n\nPlease investigate the failure.`,
labels: ['homebrew', 'validation-failure'],
assignees: ['galiacheng']
});