Skip to content

Commit

Permalink
Don't assume specific token for command
Browse files Browse the repository at this point in the history
Whatever auth is already in place in the GH CLI should be in use.
  • Loading branch information
kzu committed Oct 1, 2024
1 parent a8d967a commit f955bdc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,18 @@ jobs:

- name: ⚙ sponsors
shell: pwsh
env:
token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
run: |
dotnet tool update -g dotnet-sponsor
$owners = gc owners.json | convertfrom-json
if ('${{ github.event.inputs.owner }}') {
$owners = @('${{ github.event.inputs.owner }}')
}
foreach ($owner in $owners) {
'${{ env.token }}' | sponsor nuget --tos --exceptions --oss-only false --with-token --force --owner $owner
sponsor nuget --tos --exceptions --oss-only false --with-token --force --owner $owner
}
# global stats for all packages
if (${{ github.event.inputs.global || '$true' }}) {
'${{ env.token }}' | sponsor nuget --tos --exceptions --force --with-token
sponsor nuget --tos --exceptions --force --with-token
}
- name: ⬆️ commit
Expand Down

0 comments on commit f955bdc

Please sign in to comment.