Skip to content

Conversation

@stesee
Copy link
Collaborator

@stesee stesee commented Jan 6, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 6, 2026 17:24
Copy link

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 attempts to simplify the NuGet push and GitHub release commands by removing explicit path prefixes from the file patterns. However, this simplification introduces critical bugs that will cause deployment failures.

Key Changes

  • Simplified dotnet nuget push command paths from ./OpenXmlPowerTools/bin/Release/*.nupkg to *.nupkg
  • Simplified gh release create command paths from ./OpenXmlPowerTools/bin/Release/*.*nupkg to *.*nupkg
  • Applied these changes to both the deployRelease and deployTest jobs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

if: env.NUGET_TOKEN_EXISTS != ''
run: |
dotnet nuget push ./OpenXmlPowerTools/bin/Release/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TOKEN}} --source https://api.nuget.org/v3/index.json
dotnet nuget push *.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TOKEN}} --source https://api.nuget.org/v3/index.json
Copy link

Copilot AI Jan 6, 2026

Choose a reason for hiding this comment

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

The simplified path *.nupkg will not find the NuGet packages. The build artifacts are uploaded from OpenXmlPowerTools/bin/Release/ (line 39), but when downloaded using actions/download-artifact@v6, they are extracted to the current working directory without preserving the original path structure. The *.nupkg pattern searches in the current directory, but the packages will be in OpenXmlPowerTools/bin/Release/ subdirectory. This command will fail with a "No packages found" error.

Copilot uses AI. Check for mistakes.
if: env.GITHUB_TOKEN != ''
run: |
gh release create ${{env.CURRENT_VERSION}} ./OpenXmlPowerTools/bin/Release/*.*nupkg --generate-notes
gh release create ${{env.CURRENT_VERSION}} *.*nupkg --generate-notes
Copy link

Copilot AI Jan 6, 2026

Choose a reason for hiding this comment

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

The simplified path *.*nupkg will not find the NuGet packages. The build artifacts are uploaded from OpenXmlPowerTools/bin/Release/ (line 39), but when downloaded using actions/download-artifact@v6, they are extracted to the current working directory without preserving the original path structure. The *.*nupkg pattern searches in the current directory, but the packages will be in OpenXmlPowerTools/bin/Release/ subdirectory. This command will fail with a "No such file or directory" error.

Copilot uses AI. Check for mistakes.
run: |
ls ./OpenXmlPowerTools/bin/Release
dotnet nuget push ./OpenXmlPowerTools/bin/Release/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TEST_TOKEN}} --source https://apiint.nugettest.org/v3/index.json
dotnet nuget push *.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TEST_TOKEN}} --source https://apiint.nugettest.org/v3/index.json
Copy link

Copilot AI Jan 6, 2026

Choose a reason for hiding this comment

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

The simplified path *.nupkg will not find the NuGet packages. The build artifacts are uploaded from OpenXmlPowerTools/bin/Release/ (line 39), but when downloaded using actions/download-artifact@v6, they are extracted to the current working directory without preserving the original path structure. The *.nupkg pattern searches in the current directory, but the packages will be in OpenXmlPowerTools/bin/Release/ subdirectory. This command will fail with a "No packages found" error. Note that line 86 still has the correct path, which shows the expected location of the files.

Copilot uses AI. Check for mistakes.
if: env.GITHUB_TOKEN != ''
run: |
gh release create ${{env.CURRENT_VERSION}} ./OpenXmlPowerTools/bin/Release/*.*nupkg --prerelease --generate-notes
gh release create ${{env.CURRENT_VERSION}} *.*nupkg --prerelease --generate-notes
Copy link

Copilot AI Jan 6, 2026

Choose a reason for hiding this comment

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

The simplified path *.*nupkg will not find the NuGet packages. The build artifacts are uploaded from OpenXmlPowerTools/bin/Release/ (line 39), but when downloaded using actions/download-artifact@v6, they are extracted to the current working directory without preserving the original path structure. The *.*nupkg pattern searches in the current directory, but the packages will be in OpenXmlPowerTools/bin/Release/ subdirectory. This command will fail with a "No such file or directory" error.

Copilot uses AI. Check for mistakes.
@stesee stesee merged commit c82e074 into main Jan 6, 2026
15 checks passed
@stesee stesee deleted the stesee-patch-1 branch January 6, 2026 18:23
@github-actions github-actions bot locked and limited conversation to collaborators Jan 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants