From 91296bd5eb022dce9e7891540257232b3e9906e1 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 7 Jul 2022 21:31:19 -0300 Subject: [PATCH] fix: allow TimeoutMinutes to be expression in Jobs (#1247) This change stops act from rejecting valid entries such as ``` timeout-minutes: ${{ matrix.runtime == 'v8' && 30 || 15 }} ``` at the job level. This change complements the fix that was already in place for the Step struct, done in #1217. See: https://github.com/nektos/act/commit/52f5c4592cbbf2e4dde3b35ad42f4e7475ad52df Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- pkg/model/workflow.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/model/workflow.go b/pkg/model/workflow.go index ab37043..53b1cb2 100644 --- a/pkg/model/workflow.go +++ b/pkg/model/workflow.go @@ -63,7 +63,7 @@ type Job struct { Env yaml.Node `yaml:"env"` If yaml.Node `yaml:"if"` Steps []*Step `yaml:"steps"` - TimeoutMinutes int64 `yaml:"timeout-minutes"` + TimeoutMinutes string `yaml:"timeout-minutes"` Services map[string]*ContainerSpec `yaml:"services"` Strategy *Strategy `yaml:"strategy"` RawContainer yaml.Node `yaml:"container"`