actions / runner

The Runner for GitHub Actions :rocket:
https://github.com/features/actions
MIT License
4.89k stars 959 forks source link

"Set up job" does not use tool cache dir #2782

Open davhdavh opened 1 year ago

davhdavh commented 1 year ago

Describe the bug

https://github.com/actions/runner/blob/8b9a81c952a0c2a2a13a23b952c6a083c97f2a1b/src/Runner.Worker/ActionManager.cs#L774

The download code for actions does not include using the tool cache

To Reproduce Steps to reproduce the behavior:

  1. Set up self-hosted runner with tool-caching (ie $RUNNER_TOOL_CACHE)
  2. Run any action
  3. See download of actions dependencies EVERY SINGLE TIME

Expected behavior Download ONCE

Runner Version and Platform

2.308.0

OS of the machine running the runner? ALL

Job Log Output

If applicable, include the relevant part of the job / step log output here. All sensitive information should already be masked out, but please double-check before pasting here.

Runner and Worker's Diagnostic Logs

image

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 15 days.

davhdavh commented 2 months ago

/not-stale