Skip to content

Commit ef20bc2

Browse files
committed
dev: Development changes
1 parent 62c880c commit ef20bc2

File tree

3 files changed

+13
-19
lines changed

3 files changed

+13
-19
lines changed

.github/actions/node-build/action.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1+
name: "Upload Artifacts"
2+
description: "Upload Build Artifacts"
13
inputs:
24
packages:
35
required: true
4-
6+
description: "Packages to include"
57

68
runs:
79
using: "composite"
8-
910
steps:
1011
- name: "Build Artifacts Directory"
11-
using: 'node20'
12-
main: 'dist/index.js'
12+
shell: bash
13+
run: node dist/index.js
14+
env:
15+
PACKAGES: ${{ inputs.packages }}
1316

1417
- name: "Upload Artifacts"
1518
uses: actions/upload-artifact@v4
1619
with:
1720
name: 'artifacts'
1821
path: __artifacts__/*
19-

.github/actions/node-build/dist/index.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19673,7 +19673,7 @@ var require_core = __commonJS({
1967319673
process.env["PATH"] = `${inputPath}${path2.delimiter}${process.env["PATH"]}`;
1967419674
}
1967519675
exports2.addPath = addPath;
19676-
function getInput2(name, options) {
19676+
function getInput(name, options) {
1967719677
const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || "";
1967819678
if (options && options.required && !val) {
1967919679
throw new Error(`Input required and not supplied: ${name}`);
@@ -19683,9 +19683,9 @@ var require_core = __commonJS({
1968319683
}
1968419684
return val.trim();
1968519685
}
19686-
exports2.getInput = getInput2;
19686+
exports2.getInput = getInput;
1968719687
function getMultilineInput(name, options) {
19688-
const inputs = getInput2(name, options).split("\n").filter((x) => x !== "");
19688+
const inputs = getInput(name, options).split("\n").filter((x) => x !== "");
1968919689
if (options && options.trimWhitespace === false) {
1969019690
return inputs;
1969119691
}
@@ -19695,7 +19695,7 @@ var require_core = __commonJS({
1969519695
function getBooleanInput(name, options) {
1969619696
const trueValue = ["true", "True", "TRUE"];
1969719697
const falseValue = ["false", "False", "FALSE"];
19698-
const val = getInput2(name, options);
19698+
const val = getInput(name, options);
1969919699
if (trueValue.includes(val))
1970019700
return true;
1970119701
if (falseValue.includes(val))
@@ -20044,11 +20044,7 @@ var import_node_path = __toESM(require("node:path"), 1);
2004420044
var core = __toESM(require_core(), 1);
2004520045
var import_ansi_colors = __toESM(require_ansi_colors(), 1);
2004620046
async function run() {
20047-
const packagesString = core.getInput("packages", {
20048-
trimWhitespace: true,
20049-
required: true
20050-
});
20051-
const packages = JSON.parse(packagesString);
20047+
const packages = JSON.parse(process.env.PACKAGES);
2005220048
core.info(packages);
2005320049
core.startGroup("Preparing directories");
2005420050
const rootDir = process.env.GITHUB_WORKSPACE;

.github/actions/node-build/src/index.mjs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ import * as core from "@actions/core";
44
import colors from "ansi-colors";
55

66
async function run() {
7-
const packagesString = core.getInput("packages", {
8-
trimWhitespace: true,
9-
required: true,
10-
});
11-
const packages = JSON.parse(packagesString);
7+
const packages = JSON.parse(process.env.PACKAGES);
128
// core.debug(packages);
139
core.info(packages);
1410

0 commit comments

Comments
 (0)