Testing workflows

This commit is contained in:
Ashcon Partovi
2024-04-23 15:09:40 -07:00
parent b7cf9fc211
commit b9a016ddd9
2 changed files with 5 additions and 5 deletions

View File

@@ -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",

View File

@@ -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();