mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-09-06 13:52:20 +08:00
Simplify build scan url extraction
This commit is contained in:
@@ -18,12 +18,9 @@ export async function execute(
|
|||||||
ignoreReturnCode: true,
|
ignoreReturnCode: true,
|
||||||
listeners: {
|
listeners: {
|
||||||
stdline: (line: string) => {
|
stdline: (line: string) => {
|
||||||
if (line.startsWith('Publishing build scan...')) {
|
if (line.includes('Publishing build scan...')) {
|
||||||
publishing = true
|
publishing = true
|
||||||
}
|
}
|
||||||
if (publishing && line.length === 0) {
|
|
||||||
publishing = false
|
|
||||||
}
|
|
||||||
if (publishing && line.startsWith('http')) {
|
if (publishing && line.startsWith('http')) {
|
||||||
buildScanUrl = line.trim()
|
buildScanUrl = line.trim()
|
||||||
publishing = false
|
publishing = false
|
||||||
|
Reference in New Issue
Block a user