-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #197 from microsoft/main
Deploy 2/2/24
- Loading branch information
Showing
7 changed files
with
22 additions
and
75 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file renamed
BIN
+163 KB
...m-0.1.346-alpha-c170e310e7-9d8b9e8a17.zip → ...m-0.1.347-alpha-169df13d9d-acaaad5c84.zip
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,8 @@ | ||
import * as indexCore from '@richnav/rich-code-nav-indexer-core'; | ||
import { CachingTask, GitHubRepoInfo } from '@richnav/rich-code-nav-indexer-core'; | ||
import { factory } from 'cloudbuild-task-github-actions'; | ||
import * as github from '@actions/github'; | ||
|
||
class GitHubCachingTask extends CachingTask { | ||
constructor(cloudTask, apiTokens) { | ||
super(cloudTask, | ||
{ pipelineHost: "GitHub Actions", buildId: github.context.runId.toString(), buildDefinitionId: github.context.workflow}, | ||
false, /* isExternal */ | ||
apiTokens); | ||
} | ||
|
||
protected getSourceControlInformationProvider(languageInput?: string | undefined): indexCore.BaseRepoInfo { | ||
const repoToken = factory.inputs.getInput('repo-token') ?? process.env.REPO_TOKEN; | ||
return new GitHubRepoInfo(factory, repoToken, languageInput); | ||
class DeprecatedTask { | ||
public async run() { | ||
// Code Index deprecated, returning error on build. | ||
console.log(`As of January 2024, the RichCodeNavIndexer task is being deprecated. Please remove this task from your CI.`); | ||
} | ||
} | ||
|
||
const serviceConnection = factory.inputs.getInput('service-token') ?? process.env.SERVICE_TOKEN; | ||
new GitHubCachingTask( | ||
factory, | ||
{ | ||
serviceConnection: serviceConnection, | ||
|
||
// Used to access private NuGet feeds. Does nothing if isPrivate input is not `true`. | ||
systemVSSConnection: process.env.CODEINDEX_FEED_TOKEN, | ||
}).run(); | ||
new DeprecatedTask().run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters