From 7b5dbd36d7f2be1127a37859618880ef4cac965d Mon Sep 17 00:00:00 2001 From: Chris Goller Date: Thu, 7 Mar 2024 11:14:02 -0600 Subject: [PATCH] refactor: remove build targets The build targets output is trick to use as an input. We will simplify the pull-action. Signed-off-by: Chris Goller --- README.md | 1 - dist/index.js | 5 +---- src/index.ts | 3 --- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/README.md b/README.md index b3231e0..41efc31 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,6 @@ The following inputs can be used as `step.with` keys and match the inputs from [ | `metadata` | JSON | Build result metadata | | `project-id` | String | Depot Project ID | | `build-id` | String | Depot Build ID | -| `targets` | Array | Saved Bake Targets | ## License diff --git a/dist/index.js b/dist/index.js index cf58d61..12e023f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -76151,7 +76151,7 @@ async function main() { const metadata = getMetadata(); if (metadata) { await core3.group(`Metadata`, async () => { - var _a, _b, _c; + var _a, _b; core3.info(metadata); core3.setOutput("metadata", metadata); try { @@ -76162,9 +76162,6 @@ async function main() { if ((_b = parsed == null ? void 0 : parsed["depot.build"]) == null ? void 0 : _b.projectID) { core3.setOutput("project-id", parsed["depot.build"].projectID); } - if ((_c = parsed == null ? void 0 : parsed["depot.build"]) == null ? void 0 : _c.targets) { - core3.setOutput("targets", parsed["depot.build"].targets); - } } catch { } }); diff --git a/src/index.ts b/src/index.ts index 7ecfc39..c889b1b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -32,9 +32,6 @@ async function main() { if (parsed?.['depot.build']?.projectID) { core.setOutput('project-id', parsed['depot.build'].projectID) } - if (parsed?.['depot.build']?.targets) { - core.setOutput('targets', parsed['depot.build'].targets) - } } catch {} }) }