File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3351,6 +3351,6 @@ runs.closed_tab = %d Closed
3351
3351
runs.commit = Commit
3352
3352
runs.pushed_by = Pushed by
3353
3353
runs.valid_workflow_helper = Workflow config file is valid.
3354
- runs.invalid_workflow_helper = Workflow config file is invalid. Please check your config file.
3354
+ runs.invalid_workflow_helper = Workflow config file is invalid. Please check your config file: %s
3355
3355
3356
3356
need_approval_desc = Need approval to run workflows for fork pull request.
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ const (
26
26
type WorkFlow struct {
27
27
Entry git.TreeEntry
28
28
IsInvalid bool
29
+ ErrMsg string
29
30
}
30
31
31
32
// MustEnableActions check if actions are enabled in settings
@@ -83,6 +84,7 @@ func List(ctx *context.Context) {
83
84
_ , err = actions .GetEventsFromContent (content )
84
85
if err != nil {
85
86
workflow .IsInvalid = true
87
+ workflow .ErrMsg = err .Error ()
86
88
}
87
89
workflows = append (workflows , workflow )
88
90
}
Original file line number Diff line number Diff line change 11
11
{{range .workflows}}
12
12
<a class="item{{if eq .Entry.Name $.CurWorkflow}} active{{end}}" href="{{$.Link}}?workflow={{.Entry.Name}}">{{.Entry.Name}}
13
13
{{if .IsInvalid}}
14
- <span class="tooltip gt-vm" data-content="{{$.locale.Tr "actions.runs.invalid_workflow_helper"}}">
14
+ <span class="tooltip gt-vm" data-content="{{$.locale.Tr "actions.runs.invalid_workflow_helper" (.ErrMsg) }}">
15
15
<i class="warning icon red"></i>
16
16
</span>
17
17
{{else}}
You can’t perform that action at this time.
0 commit comments