File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,15 @@ jobs:
5555 with :
5656 dotnet-version : 10.0.x
5757 - name : Add Evolutionary Architecture Nuget Source
58- uses : evolutionary-architecture/evolutionary-architecture-by-example/.github@main
59- with :
60- github-token : ${{ secrets.GITHUB_TOKEN }}
61- owner : ${{ github.repository_owner }}
62- path : ${{ env.CHAPTER_DIR }}
63- nuget-source-name : ${{ env.NUGET_SOURCE_NAME }}
58+ run : |
59+ if ! dotnet nuget list source | grep -q "${{ env.NUGET_SOURCE_NAME }}"; then
60+ dotnet nuget add source \
61+ https://nuget.pkg.github.com/${{ inputs.owner }}/index.json \
62+ --name ${{ env.NUGET_SOURCE_NAME }} \
63+ --username ${{ github.actor }} \
64+ --password ${{ inputs.github-token }} \
65+ --store-password-in-clear-text
66+ fi
6467
6568 - name : Restore dependencies
6669 run : dotnet restore
You can’t perform that action at this time.
0 commit comments