mirror of
https://github.com/gradle/actions.git
synced 2025-11-26 17:09:10 +08:00
Enable wrapper validation with setup-gradle action
This commit is contained in:
@@ -9,7 +9,7 @@ import type {PullRequestEvent} from '@octokit/webhooks-types'
|
||||
import * as path from 'path'
|
||||
import fs from 'fs'
|
||||
|
||||
import {PostActionJobFailure} from './errors'
|
||||
import {JobFailure} from './errors'
|
||||
import {DependencyGraphConfig, DependencyGraphOption, getGithubToken, getWorkspaceDirectory} from './configuration'
|
||||
|
||||
const DEPENDENCY_GRAPH_PREFIX = 'dependency-graph_'
|
||||
@@ -208,7 +208,7 @@ function markProcessed(dependencyGraphFile: string): void {
|
||||
|
||||
function warnOrFail(config: DependencyGraphConfig, option: String, error: unknown): void {
|
||||
if (!config.getDependencyGraphContinueOnFailure()) {
|
||||
throw new PostActionJobFailure(error)
|
||||
throw new JobFailure(error)
|
||||
}
|
||||
|
||||
core.warning(`Failed to ${option} dependency graph. Will continue.\n${String(error)}`)
|
||||
|
||||
Reference in New Issue
Block a user