Evaluate run-name field for workflows (#137)

To support https://github.com/go-gitea/gitea/pull/34301

Reviewed-on: https://gitea.com/gitea/act/pulls/137
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: badhezi <zlilaharon@gmail.com>
Co-committed-by: badhezi <zlilaharon@gmail.com>
This commit is contained in:
badhezi
2025-05-12 17:17:50 +00:00
committed by Lunny Xiao
parent 65c232c4a5
commit 9924aea786
2 changed files with 7 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ type SingleWorkflow struct {
RawJobs yaml.Node `yaml:"jobs,omitempty"`
Defaults Defaults `yaml:"defaults,omitempty"`
RawPermissions yaml.Node `yaml:"permissions,omitempty"`
RunName string `yaml:"run-name,omitempty"`
}
func (w *SingleWorkflow) Job() (string, *Job) {