From 82265d39bd6bf19b8271e61d4adf6b6c4a801231 Mon Sep 17 00:00:00 2001 From: hulk510 Date: Thu, 18 Jan 2024 00:54:16 +0900 Subject: [PATCH] test --- src/main.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index d5af8688..ee14e52d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -16,6 +16,7 @@ const deleteRefActionsCache = async ( } ) + // https://github.com/octokit/octokit.js/tree/b831b6bce43d56b97e25a996e1b43525486d8bd3?tab=readme-ov-file#pagination for await (const { data: cacheList } of iterator) { for (const { id: cacheId } of cacheList) { if (!cacheId) continue @@ -39,8 +40,11 @@ export async function run(): Promise { // MEMO: git contextからheadRefは取得できなそう const { repo, ref } = github.context + core.info(`repo: ${github.context.payload.pull_request}`) + // const eventPath = process.env.GITHUB_EVENT_PATH + const headRef = process.env.GITHUB_HEAD_REF - core.debug(`headRef: ${headRef}`) + core.info(`headRef: ${headRef}`) if (headRef) { deleteRefActionsCache(octokit, repo, headRef)