mirror of
https://github.com/ivabus/pantry
synced 2025-06-08 08:20:32 +03:00
revert: it broke a lot and didn't fix anything
This commit is contained in:
parent
cc1613c749
commit
cbcca88711
1 changed files with 3 additions and 5 deletions
|
@ -35,17 +35,15 @@ const wet = await hydrate(dry, async (pkg, dry) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
if (Deno.env.get("GITHUB_ACTIONS")) {
|
if (Deno.env.get("GITHUB_ACTIONS")) {
|
||||||
const massage = (input: PackageRequirement[], with_raw = false) =>
|
const massage = (input: PackageRequirement[]) =>
|
||||||
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)
|
||||||
|
// shell quoting via GHA is weird and we don’t fully understand it
|
||||||
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, true)}`)
|
console.log(`::set-output name=pkgs::${massage(wet.dry)}`)
|
||||||
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