mirror of
https://github.com/gradle/actions.git
synced 2026-10-16 19:57:12 +08:00
Simplify build scan url extraction
This commit is contained in:
1 parent
e3d60b3873
commit
55871cbb47
1 file changed
+1
-4
+1
-4
@@ -18,12 +18,9 @@ export async function execute(
|
||||
ignoreReturnCode: true,
|
||||
listeners: {
|
||||
stdline: (line: string) => {
|
||||
if (line.startsWith('Publishing build scan...')) {
|
||||
if (line.includes('Publishing build scan...')) {
|
||||
publishing = true
|
||||
}
|
||||
if (publishing && line.length === 0) {
|
||||
publishing = false
|
||||
}
|
||||
if (publishing && line.startsWith('http')) {
|
||||
buildScanUrl = line.trim()
|
||||
publishing = false
|
||||
|
||||
Reference in new issue
Block a user