File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -158,8 +158,8 @@ jobs:
158
158
run : ./PackEachExperiment.ps1 -date ${{ env.VERSION_DATE }} -postfix ${{ env.VERSION_PROPERTY }}
159
159
160
160
# Push Pull Request Packages to our DevOps Artifacts Feed (see nuget.config)
161
- - name : Push Pull Request Packages
162
- if : ${{ env.IS_PR == 'true' }}
161
+ - name : Push Pull Request Packages (if not fork)
162
+ if : ${{ env.IS_PR == 'true' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
163
163
run : |
164
164
dotnet nuget add source https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-PullRequests/nuget/v3/index.json `
165
165
--name PullRequests `
@@ -232,10 +232,10 @@ jobs:
232
232
path : |
233
233
${{ github.workspace }}/.github/workflows/SignClientFileList.txt
234
234
235
- # if we're not doing a PR build then we upload our packages so we can sign as a separate job.
235
+ # if we're not doing a PR build (or it's a PR from a fork) then we upload our packages so we can sign as a separate job or have available to test .
236
236
- name : Upload Packages as Artifacts
237
237
uses : actions/upload-artifact@v3
238
- if : ${{ env.IS_PR == 'false' }}
238
+ if : ${{ env.IS_PR == 'false' || github.event.pull_request.head.repo.full_name != github.repository }}
239
239
with :
240
240
name : nuget-packages-${{ matrix.platform }}
241
241
if-no-files-found : error
You can’t perform that action at this time.
0 commit comments