mirror of
https://github.com/gradle/actions.git
synced 2025-11-26 17:09:10 +08:00
Emit deprecation warning for 'gradle-build-action'
This commit is contained in:
@@ -3,7 +3,7 @@ import * as github from '@actions/github'
|
||||
import {RequestError} from '@octokit/request-error'
|
||||
|
||||
import {BuildResult} from './build-results'
|
||||
import {SummaryConfig, getGithubToken} from './configuration'
|
||||
import {SummaryConfig, getActionId, getGithubToken} from './configuration'
|
||||
import {Deprecation, getDeprecations} from './deprecation-collector'
|
||||
|
||||
export async function generateJobSummary(
|
||||
@@ -88,7 +88,8 @@ function renderDeprecations(): string {
|
||||
return ''
|
||||
}
|
||||
return `
|
||||
<h4>Deprecated usages of ${github.context.action}</h4>
|
||||
<h4>Deprecation warnings</h4>
|
||||
This job uses deprecated functionality from the <code>${getActionId()}</code> action. Follow the links for upgrade details.
|
||||
<ul>
|
||||
${deprecations.map(deprecation => `<li>${getDeprecationHtml(deprecation)}</li>`).join('')}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user