From ecff9c4c70e0f90c867bf571bff911f2c1fada00 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Fri, 29 Aug 2025 13:51:34 +0000 Subject: [PATCH] actions: context: verify RUNNER_TOOL_CACHE exists (#968) As of [Forgejo runner 5.0.1](https://code.forgejo.org/forgejo/runner/commit/5889426664adb3197dfb8840ea8b6d77c28b63f9), RUNNER_TOOL_CACHE is set but it is not pre-populated. By default it does not exist but a dedicated container image my place shared tools at that location for actions / workflows that expect them to be advertised by this environment variable. Resolves forgejo/runner#901 Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/968 Co-authored-by: Earl Warren Co-committed-by: Earl Warren --- actions/example-context/.forgejo/workflows/test.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/actions/example-context/.forgejo/workflows/test.yml b/actions/example-context/.forgejo/workflows/test.yml index 2d3576fb..8b8b971f 100644 --- a/actions/example-context/.forgejo/workflows/test.yml +++ b/actions/example-context/.forgejo/workflows/test.yml @@ -242,11 +242,10 @@ jobs: set -x test "$RUNNER_OS" = Linux - # runner 3.3.0 $RUNNER_TOOL_CACHE is not an existing directory - # - name: RUNNER_TOOL_CACHE - # run: | - # set -x - # test -d "$RUNNER_TOOL_CACHE" + - name: RUNNER_TOOL_CACHE + run: | + set -x + test "$RUNNER_TOOL_CACHE" - name: RUNNER_TEMP run: |