Skip to content

Commit e2d9f71

Browse files
sunnamed434claude
andcommitted
ci: make GitHub Packages push owner-agnostic (org-transfer prep)
Use github.repository_owner instead of the hardcoded sunnamed434 so the nightly nuget.pkg.github.com push follows the repo after transfer to the org. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 6493124 commit e2d9f71

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/actions/project-build/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ runs:
103103
# Push to GitHub packages on each commit and release (Nightly)
104104
- name: Push to NuGet (Nightly)
105105
run: if ${{ inputs.nuget_push == 'true' && (github.event_name == 'push' || (github.event_name == 'create' && github.event.ref_type == 'tag')) }}; then
106-
dotnet nuget push ${{ inputs.project_path }}/bin/Release/*.nupkg --api-key ${{ inputs.github_token }} --skip-duplicate --source https://nuget.pkg.github.com/sunnamed434/index.json;
106+
dotnet nuget push ${{ inputs.project_path }}/bin/Release/*.nupkg --api-key ${{ inputs.github_token }} --skip-duplicate --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json;
107107
fi
108108
shell: bash
109109

.github/workflows/BitMono.Integration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ubuntu-latest
2828
permissions:
2929
contents: read # checkout
30-
packages: write # dotnet nuget push -> nuget.pkg.github.com/sunnamed434
30+
packages: write # dotnet nuget push -> nuget.pkg.github.com/<owner>
3131
id-token: write # OIDC for NuGet Trusted Publishing
3232

3333
steps:

0 commit comments

Comments
 (0)