summaryrefslogtreecommitdiffstats
path: root/internal/app/run/runner.go
diff options
context:
space:
mode:
authorChristopher Homberger <christopher.homberger@web.de>2024-02-19 03:30:54 +0100
committerEarl Warren <contact@earl-warren.org>2024-03-11 16:10:26 +0100
commitcd206e466062179b066adfbef7fd139edaa36851 (patch)
tree46127aefb217a620fdbdde201c88dec4f849975b /internal/app/run/runner.go
parentUse artifacts v4 jwt if available (#471) (diff)
downloadforgejo-runner-cd206e466062179b066adfbef7fd139edaa36851.tar.xz
forgejo-runner-cd206e466062179b066adfbef7fd139edaa36851.zip
Add ACTIONS_RESULTS_URL to env (#473)
actions/upload-artifact@v4 and actions/download-artifact@v4 depend on this variable BaseUrl in a url are ignored by the nodejs code of the new actions, so this change doesn't append the path of the older `ACTIONS_RUNTIME_URL`. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-on: https://gitea.com/gitea/act_runner/pulls/473 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Christopher Homberger <christopher.homberger@web.de> Co-committed-by: Christopher Homberger <christopher.homberger@web.de> (cherry picked from commit e14f42c40ac91d032c6a7c3e912646e55b2031a8)
Diffstat (limited to 'internal/app/run/runner.go')
-rw-r--r--internal/app/run/runner.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/app/run/runner.go b/internal/app/run/runner.go
index be202c9..78bb956 100644
--- a/internal/app/run/runner.go
+++ b/internal/app/run/runner.go
@@ -81,6 +81,7 @@ func NewRunner(cfg *config.Config, reg *config.Registration, cli client.Client)
// set artifact gitea api
artifactGiteaAPI := strings.TrimSuffix(cli.Address(), "/") + "/api/actions_pipeline/"
envs["ACTIONS_RUNTIME_URL"] = artifactGiteaAPI
+ envs["ACTIONS_RESULTS_URL"] = strings.TrimSuffix(cli.Address(), "/")
// Set specific environments to distinguish between Gitea and GitHub
envs["GITEA_ACTIONS"] = "true"