mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Testing workflows
This commit is contained in:
6
.github/actions/cache-key/action.mjs
vendored
6
.github/actions/cache-key/action.mjs
vendored
@@ -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",
|
||||
|
||||
4
.github/actions/cache-key/dist/action.mjs
vendored
4
.github/actions/cache-key/dist/action.mjs
vendored
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user