revert: it broke a lot and didn't fix anything

This commit is contained in:
Max Howell 2022-09-27 15:59:14 -04:00
parent 8717d8496e
commit d9a749bdd6

View file

@ -35,17 +35,15 @@ const wet = await hydrate(dry, async (pkg, dry) => {
})
if (Deno.env.get("GITHUB_ACTIONS")) {
const massage = (input: PackageRequirement[], with_raw = false) =>
const massage = (input: PackageRequirement[]) =>
input.map(p => {
if (with_raw && p.constraint.raw) {
return `${p.project}@${p.constraint.raw}`
}
let out = pkg.str(p)
// shell quoting via GHA is weird and we dont fully understand it
if (/[<>]/.test(out)) out = `"${out}"`
return out
}).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)}`)
} else {
const gas = wet.dry.map(x => pkg.str(x))