Skip to content

Commit bd6859c

Browse files
committed
Use core.group() instead of startGroup/endGroup
1 parent 223e443 commit bd6859c

File tree

2 files changed

+28
-30
lines changed

2 files changed

+28
-30
lines changed

common.js

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -360,24 +360,23 @@ export function setupPath(newPathEntries) {
360360
const originalPath = process.env[envPath].split(path.delimiter)
361361
let cleanPath = originalPath.filter(entry => !/\bruby\b/i.test(entry))
362362

363-
core.startGroup(`Modifying ${envPath}`)
364-
365-
// First remove the conflicting path entries
366-
if (cleanPath.length !== originalPath.length) {
367-
console.log(`Entries removed from ${envPath} to avoid conflicts with default Ruby:`)
368-
for (const entry of originalPath) {
369-
if (!cleanPath.includes(entry)) {
370-
console.log(` ${entry}`)
363+
core.group(`Modifying ${envPath}`, async () => {
364+
// First remove the conflicting path entries
365+
if (cleanPath.length !== originalPath.length) {
366+
console.log(`Entries removed from ${envPath} to avoid conflicts with default Ruby:`)
367+
for (const entry of originalPath) {
368+
if (!cleanPath.includes(entry)) {
369+
console.log(` ${entry}`)
370+
}
371371
}
372+
core.exportVariable(envPath, cleanPath.join(path.delimiter))
372373
}
373-
core.exportVariable(envPath, cleanPath.join(path.delimiter))
374-
}
375374

376-
console.log(`Entries added to ${envPath} to use selected Ruby:`)
377-
for (const entry of newPathEntries) {
378-
console.log(` ${entry}`)
379-
}
380-
core.endGroup()
375+
console.log(`Entries added to ${envPath} to use selected Ruby:`)
376+
for (const entry of newPathEntries) {
377+
console.log(` ${entry}`)
378+
}
379+
})
381380

382381
core.addPath(newPathEntries.join(path.delimiter))
383382
}

dist/index.js

Lines changed: 14 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy