You've already forked setup-dotnet
mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-07-25 08:09:09 +07:00
Missing /index.json restored
This commit is contained in:
@ -29,7 +29,7 @@ function writeFeedToFile(feedUrl, existingFileLocation, tempFileLocation) {
|
||||
owner = github.context.repo.owner;
|
||||
}
|
||||
if (feedUrl.indexOf('nuget.pkg.github.com') > -1) {
|
||||
sourceUrl = 'https://nuget.pkg.github.com/' + owner;
|
||||
sourceUrl = 'https://nuget.pkg.github.com/' + owner + '/index.json';
|
||||
}
|
||||
if (!process.env.NUGET_AUTH_TOKEN || process.env.NUGET_AUTH_TOKEN == '') {
|
||||
throw new Error('The NUGET_AUTH_TOKEN environment variable was not provided. In this step, add the following: \r\nenv:\r\n NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}');
|
||||
@ -85,13 +85,13 @@ function writeFeedToFile(feedUrl, existingFileLocation, tempFileLocation) {
|
||||
.up();
|
||||
sourceKeys.push(keystring);
|
||||
}
|
||||
xml = xml
|
||||
.ele('packageSourceCredentials');
|
||||
xml = xml.ele('packageSourceCredentials');
|
||||
sourceKeys.forEach(key => {
|
||||
if (key.indexOf(' ') > -1) {
|
||||
throw new Error("This action currently can't handle source names with spaces. Remove the space from your repo's NuGet.config and try again.");
|
||||
}
|
||||
xml = xml.ele(key)
|
||||
xml = xml
|
||||
.ele(key)
|
||||
.ele('add', { key: 'Username', value: owner })
|
||||
.up()
|
||||
.ele('add', {
|
||||
|
Reference in New Issue
Block a user