We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
runs-on
1 parent ff9a7af commit 29e959fCopy full SHA for 29e959f
routers/web/repo/actions/actions.go
@@ -7,6 +7,7 @@ import (
7
"bytes"
8
"fmt"
9
"net/http"
10
+ "strings"
11
12
actions_model "code.gitea.io/gitea/models/actions"
13
"code.gitea.io/gitea/models/db"
@@ -106,6 +107,12 @@ func List(ctx *context.Context) {
106
107
for _, j := range wf.Jobs {
108
runsOnList := j.RunsOn()
109
for _, ro := range runsOnList {
110
+ if strings.Contains(ro, "${{") {
111
+ // Skip if it contains expressions.
112
+ // The expressions could be very complex and could not be evaluated here,
113
+ // so just skip it, it's OK since it's just a tooltip message.
114
+ continue
115
+ }
116
if !allRunnerLabels.Contains(ro) {
117
workflow.ErrMsg = ctx.Locale.Tr("actions.runs.no_matching_runner_helper", ro)
118
break
0 commit comments