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)