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 d032500 commit b7d054eCopy full SHA for b7d054e
routers/web/repo/actions/actions.go
@@ -6,6 +6,7 @@ package actions
6
import (
7
"bytes"
8
"net/http"
9
+ "strings"
10
11
actions_model "code.gitea.io/gitea/models/actions"
12
"code.gitea.io/gitea/models/db"
@@ -105,6 +106,12 @@ func List(ctx *context.Context) {
105
106
for _, j := range wf.Jobs {
107
runsOnList := j.RunsOn()
108
for _, ro := range runsOnList {
109
+ if strings.Contains(ro, "${{") {
110
+ // Skip if it contains expressions.
111
+ // The expressions could be very complex and could not be evaluated here,
112
+ // so just skip it, it's OK since it's just a tooltip message.
113
+ continue
114
+ }
115
if !allRunnerLabels.Contains(ro) {
116
workflow.ErrMsg = ctx.Locale.Tr("actions.runs.no_matching_runner_helper", ro)
117
break
0 commit comments