Skip to content

Custom download url not use cache #98

@PittyXu

Description

@PittyXu

Download bun is slowly, I use the custom url like this.

with:
  bun-download-url: "https://**/caches/bun/v1.1.24/bun-linux-x64.zip"
  bun-version: 1.1.24

But it always download from web not from cache.
Expect if cache hit the version, it can use cache, or form local toolcache dir like this.

const tc = require('@actions/tool-cache');

const cachedPath = await tc.cacheDir(extractedFolder, 'bun', '1.1.24');

const bunDirectory = tc.find('bun', '1.1.24', 'x64');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions