mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 19:55:06 +03:00
pass project specs out of sort as we got them
This commit is contained in:
parent
af4d1da0ce
commit
b01079d244
1 changed files with 5 additions and 2 deletions
|
@ -35,14 +35,17 @@ const wet = await hydrate(dry, async (pkg, dry) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
if (Deno.env.get("GITHUB_ACTIONS")) {
|
if (Deno.env.get("GITHUB_ACTIONS")) {
|
||||||
const massage = (input: PackageRequirement[]) =>
|
const massage = (input: PackageRequirement[], with_raw = false) =>
|
||||||
input.map(p => {
|
input.map(p => {
|
||||||
|
if (with_raw && p.constraint.raw) {
|
||||||
|
return `${p.project}@${p.constraint.raw}`
|
||||||
|
}
|
||||||
let out = pkg.str(p)
|
let out = pkg.str(p)
|
||||||
if (/[<>]/.test(out)) out = `"${out}"`
|
if (/[<>]/.test(out)) out = `"${out}"`
|
||||||
return out
|
return out
|
||||||
}).join(" ")
|
}).join(" ")
|
||||||
|
|
||||||
console.log(`::set-output name=pkgs::${massage(wet.dry)}`)
|
console.log(`::set-output name=pkgs::${massage(wet.dry, true)}`)
|
||||||
console.log(`::set-output name=pre-install::${massage(wet.wet)}`)
|
console.log(`::set-output name=pre-install::${massage(wet.wet)}`)
|
||||||
} else {
|
} else {
|
||||||
const gas = wet.dry.map(x => pkg.str(x))
|
const gas = wet.dry.map(x => pkg.str(x))
|
||||||
|
|
Loading…
Reference in a new issue