1
0
Fork 0
forked from forgejo/forgejo

[CI] DEFAULT_ACTIONS_URL support for self & github (squash)

Refs: https://codeberg.org/forgejo/forgejo/issues/1062
(cherry picked from commit 74cc25376e)
This commit is contained in:
Loïc Dachary 2023-07-19 14:06:28 +02:00
parent b65d458c3a
commit 2eb558be4a
No known key found for this signature in database
GPG key ID: 992D23B392F9E4F2
3 changed files with 84 additions and 3 deletions

View file

@ -139,7 +139,7 @@ func generateTaskContext(t *actions_model.ActionTask) *structpb.Struct {
"workspace": "", // string, The default working directory on the runner for steps, and the default location of your repository when using the checkout action.
// additional contexts
"gitea_default_actions_url": setting.Actions.DefaultActionsURL,
"gitea_default_actions_url": setting.Actions.DefaultActionsURL.URL(),
})
if err != nil {
log.Error("structpb.NewStruct failed: %v", err)