aboutsummaryrefslogtreecommitdiffstats
path: root/routers/init.go
diff options
context:
space:
mode:
authorChristopherHX <christopher.homberger@web.de>2024-03-02 10:12:17 +0100
committerGitHub <noreply@github.com>2024-03-02 09:12:17 +0000
commita53d268aca87a281aadc2246541f8749eddcebed (patch)
tree20074581356a95cdf718b13fdc81b6a54fc70eb9 /routers/init.go
parent8a0a83a1b53f55bcc710c3b229cba1c1bcf471c6 (diff)
downloadgitea-a53d268aca87a281aadc2246541f8749eddcebed.tar.gz
gitea-a53d268aca87a281aadc2246541f8749eddcebed.zip
Actions Artifacts v4 backend (#28965)
Fixes #28853 Needs both https://gitea.com/gitea/act_runner/pulls/473 and https://gitea.com/gitea/act_runner/pulls/471 on the runner side and patched `actions/upload-artifact@v4` / `actions/download-artifact@v4`, like `christopherhx/gitea-upload-artifact@v4` and `christopherhx/gitea-download-artifact@v4`, to not return errors due to GHES not beeing supported yet.
Diffstat (limited to 'routers/init.go')
-rw-r--r--routers/init.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/init.go b/routers/init.go
index e0a7150ba3..1dedbebeb5 100644
--- a/routers/init.go
+++ b/routers/init.go
@@ -198,6 +198,8 @@ func NormalRoutes() *web.Route {
// TODO: this prefix should be generated with a token string with runner ?
prefix = "/api/actions_pipeline"
r.Mount(prefix, actions_router.ArtifactsRoutes(prefix))
+ prefix = actions_router.ArtifactV4RouteBase
+ r.Mount(prefix, actions_router.ArtifactsV4Routes(prefix))
}
return r