From b9a016ddd976f653061bf193dcd9bdbfd4983a0b Mon Sep 17 00:00:00 2001 From: Ashcon Partovi Date: Tue, 23 Apr 2024 15:09:40 -0700 Subject: [PATCH] Testing workflows --- .github/actions/cache-key/action.mjs | 6 +++--- .github/actions/cache-key/dist/action.mjs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/actions/cache-key/action.mjs b/.github/actions/cache-key/action.mjs index 5b9cfef1cf..f45d2c98d3 100644 --- a/.github/actions/cache-key/action.mjs +++ b/.github/actions/cache-key/action.mjs @@ -1,11 +1,11 @@ import { spawnSync } from "node:child_process"; import { createHash } from "node:crypto"; -import { getInput, setOutput } from "@actions/core"; +import { getMultilineInput, setOutput } from "@actions/core"; -const paths = getInput("paths", { required: true }); +const paths = getMultilineInput("paths", { required: true }); function getCacheKey() { - console.log("Getting cache key...", ["git", "ls-files", "-s", ...paths]); + console.log("Getting cache key...", paths); const { error, status, stdout, stderr } = spawnSync("git", ["ls-files", "-s", ...paths], { encoding: "utf-8", stdio: "pipe", diff --git a/.github/actions/cache-key/dist/action.mjs b/.github/actions/cache-key/dist/action.mjs index fc2b58bfc8..24e91bb160 100644 --- a/.github/actions/cache-key/dist/action.mjs +++ b/.github/actions/cache-key/dist/action.mjs @@ -18048,7 +18048,7 @@ var core = __toESM(require_core(), 1); import {spawnSync} from "node:child_process"; import {createHash} from "node:crypto"; var getCacheKey = function() { - console.log("Getting cache key...", ["git", "ls-files", "-s", ...paths]); + console.log("Getting cache key...", paths); const { error, status, stdout, stderr } = spawnSync("git", ["ls-files", "-s", ...paths], { encoding: "utf-8", stdio: "pipe" @@ -18066,5 +18066,5 @@ var main = function() { console.log("Cache key:", cacheKey); core.setOutput("cache-key", cacheKey); }; -var paths = core.getInput("paths", { required: true }); +var paths = core.getMultilineInput("paths", { required: true }); main();