File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,10 @@ export async function getRunIdAndUrl({
133
133
workflowTimeoutMs,
134
134
} : GetRunIdAndUrlOpts ) : Promise < Result < { id : number ; url : string } > > {
135
135
const distinctIdRegex = new RegExp ( distinctId ) ;
136
+ const retryTimeout = Math . max (
137
+ constants . WORKFLOW_FETCH_TIMEOUT_MS ,
138
+ workflowTimeoutMs ,
139
+ ) ;
136
140
137
141
core . info ( "Attempt to identify run ID from steps..." ) ;
138
142
core . debug ( `Attempting to identify Run ID for ${ workflow } (${ workflowId } )` ) ;
@@ -146,7 +150,7 @@ export async function getRunIdAndUrl({
146
150
// Get all runs for a given workflow ID
147
151
const fetchWorkflowRunIds = await api . retryOrTimeout (
148
152
( ) => api . fetchWorkflowRunIds ( workflowId , branch ) ,
149
- Math . max ( constants . WORKFLOW_FETCH_TIMEOUT_MS , workflowTimeoutMs ) ,
153
+ retryTimeout ,
150
154
) ;
151
155
if ( ! fetchWorkflowRunIds . success ) {
152
156
core . debug (
You can’t perform that action at this time.
0 commit comments