@@ -30,12 +30,15 @@ jobs:
3030 with :
3131 dotnet-version : 10.0.x
3232 - name : Add Evolutionary Architecture Nuget Source
33- uses : evolutionary-architecture/evolutionary-architecture-by-example/.github@main
34- with :
35- github-token : ${{ secrets.GITHUB_TOKEN }}
36- owner : ${{ github.repository_owner }}
37- path : ${{ env.CHAPTER_DIR }}
38- nuget-source-name : ${{ env.NUGET_SOURCE_NAME }}
33+ run : |
34+ if ! dotnet nuget list source | grep -q "${{ env.NUGET_SOURCE_NAME }}"; then
35+ dotnet nuget add source \
36+ https://nuget.pkg.github.com/${{ inputs.owner }}/index.json \
37+ --name ${{ env.NUGET_SOURCE_NAME }} \
38+ --username ${{ github.actor }} \
39+ --password ${{ inputs.github-token }} \
40+ --store-password-in-clear-text
41+ fi
3942 - name : Restore dependencies
4043 run : dotnet restore
4144 - name : Build
@@ -55,13 +58,15 @@ jobs:
5558 with :
5659 dotnet-version : 10.0.x
5760 - 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 }}
64-
61+ run : |
62+ if ! dotnet nuget list source | grep -q "${{ env.NUGET_SOURCE_NAME }}"; then
63+ dotnet nuget add source \
64+ https://nuget.pkg.github.com/${{ inputs.owner }}/index.json \
65+ --name ${{ env.NUGET_SOURCE_NAME }} \
66+ --username ${{ github.actor }} \
67+ --password ${{ inputs.github-token }} \
68+ --store-password-in-clear-text
69+ fi
6570 - name : Restore dependencies
6671 run : dotnet restore
6772 - name : Test
0 commit comments