Skip to content

Commit

Permalink
Use standard GH_TOKEN or GITHUB_TOKEN
Browse files Browse the repository at this point in the history
Rather than our own org token. This makes the repo easier to reuse after just forking it.
  • Loading branch information
kzu committed Oct 1, 2024
1 parent eb7a8cd commit 40c88c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,20 @@ 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) {
'${{ secrets.DEVLOOPED_TOKEN }}' | sponsor nuget --tos --exceptions --oss-only false --with-token --force --owner $owner
'${{ env.token }}' | sponsor nuget --tos --exceptions --oss-only false --with-token --force --owner $owner
}
# global stats for all packages
if (${{ github.event.inputs.global || '$true' }}) {
'${{ secrets.DEVLOOPED_TOKEN }}' | sponsor nuget --tos --exceptions --force --with-token
'${{ env.token }}' | sponsor nuget --tos --exceptions --force --with-token
}
- name: ⬆️ commit
Expand Down

0 comments on commit 40c88c4

Please sign in to comment.