mirror of
https://github.com/gradle/actions.git
synced 2025-08-25 19:31:27 +08:00
Remove redundant method implementation
This commit is contained in:
parent
ef7196c315
commit
a6050d4c14
7
dist/setup-gradle/main/index.js
vendored
7
dist/setup-gradle/main/index.js
vendored
@ -140593,7 +140593,7 @@ function downloadDependencyGraphs() {
|
|||||||
const workspaceDirectory = layout.workspaceDirectory();
|
const workspaceDirectory = layout.workspaceDirectory();
|
||||||
const findBy = github.context.payload.workflow_run
|
const findBy = github.context.payload.workflow_run
|
||||||
? {
|
? {
|
||||||
token: getGithubToken(),
|
token: (0, input_params_1.getGithubToken)(),
|
||||||
workflowRunId: github.context.payload.workflow_run.id,
|
workflowRunId: github.context.payload.workflow_run.id,
|
||||||
repositoryName: github.context.repo.repo,
|
repositoryName: github.context.repo.repo,
|
||||||
repositoryOwner: github.context.repo.owner
|
repositoryOwner: github.context.repo.owner
|
||||||
@ -140629,10 +140629,7 @@ function warnOrFail(option, error) {
|
|||||||
core.warning(`Failed to ${option} dependency graph. Will continue.\n${String(error)}`);
|
core.warning(`Failed to ${option} dependency graph. Will continue.\n${String(error)}`);
|
||||||
}
|
}
|
||||||
function getOctokit() {
|
function getOctokit() {
|
||||||
return github.getOctokit(getGithubToken());
|
return github.getOctokit((0, input_params_1.getGithubToken)());
|
||||||
}
|
|
||||||
function getGithubToken() {
|
|
||||||
return core.getInput('github-token', { required: true });
|
|
||||||
}
|
}
|
||||||
function getRelativePathFromWorkspace(file) {
|
function getRelativePathFromWorkspace(file) {
|
||||||
const workspaceDirectory = layout.workspaceDirectory();
|
const workspaceDirectory = layout.workspaceDirectory();
|
||||||
|
2
dist/setup-gradle/main/index.js.map
vendored
2
dist/setup-gradle/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
7
dist/setup-gradle/post/index.js
vendored
7
dist/setup-gradle/post/index.js
vendored
@ -138046,7 +138046,7 @@ function downloadDependencyGraphs() {
|
|||||||
const workspaceDirectory = layout.workspaceDirectory();
|
const workspaceDirectory = layout.workspaceDirectory();
|
||||||
const findBy = github.context.payload.workflow_run
|
const findBy = github.context.payload.workflow_run
|
||||||
? {
|
? {
|
||||||
token: getGithubToken(),
|
token: (0, input_params_1.getGithubToken)(),
|
||||||
workflowRunId: github.context.payload.workflow_run.id,
|
workflowRunId: github.context.payload.workflow_run.id,
|
||||||
repositoryName: github.context.repo.repo,
|
repositoryName: github.context.repo.repo,
|
||||||
repositoryOwner: github.context.repo.owner
|
repositoryOwner: github.context.repo.owner
|
||||||
@ -138082,10 +138082,7 @@ function warnOrFail(option, error) {
|
|||||||
core.warning(`Failed to ${option} dependency graph. Will continue.\n${String(error)}`);
|
core.warning(`Failed to ${option} dependency graph. Will continue.\n${String(error)}`);
|
||||||
}
|
}
|
||||||
function getOctokit() {
|
function getOctokit() {
|
||||||
return github.getOctokit(getGithubToken());
|
return github.getOctokit((0, input_params_1.getGithubToken)());
|
||||||
}
|
|
||||||
function getGithubToken() {
|
|
||||||
return core.getInput('github-token', { required: true });
|
|
||||||
}
|
}
|
||||||
function getRelativePathFromWorkspace(file) {
|
function getRelativePathFromWorkspace(file) {
|
||||||
const workspaceDirectory = layout.workspaceDirectory();
|
const workspaceDirectory = layout.workspaceDirectory();
|
||||||
|
2
dist/setup-gradle/post/index.js.map
vendored
2
dist/setup-gradle/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
@ -14,6 +14,7 @@ import {PostActionJobFailure} from './errors'
|
|||||||
import {
|
import {
|
||||||
DependencyGraphOption,
|
DependencyGraphOption,
|
||||||
getDependencyGraphContinueOnFailure,
|
getDependencyGraphContinueOnFailure,
|
||||||
|
getGithubToken,
|
||||||
getJobMatrix,
|
getJobMatrix,
|
||||||
getArtifactRetentionDays
|
getArtifactRetentionDays
|
||||||
} from './input-params'
|
} from './input-params'
|
||||||
@ -192,10 +193,6 @@ function getOctokit(): InstanceType<typeof GitHub> {
|
|||||||
return github.getOctokit(getGithubToken())
|
return github.getOctokit(getGithubToken())
|
||||||
}
|
}
|
||||||
|
|
||||||
function getGithubToken(): string {
|
|
||||||
return core.getInput('github-token', {required: true})
|
|
||||||
}
|
|
||||||
|
|
||||||
function getRelativePathFromWorkspace(file: string): string {
|
function getRelativePathFromWorkspace(file: string): string {
|
||||||
const workspaceDirectory = layout.workspaceDirectory()
|
const workspaceDirectory = layout.workspaceDirectory()
|
||||||
return path.relative(workspaceDirectory, file)
|
return path.relative(workspaceDirectory, file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user