Skip to content

Commit b0f511d

Browse files
committed
Support timeout-minutes
1 parent df387e2 commit b0f511d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/package/job.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export type JobConfig = {
55
name: string;
66
runsOn: string;
77
permissions?: Permissions;
8+
timeoutMinutes?: number;
89
};
910

1011
export class Job {
@@ -33,6 +34,7 @@ export class Job {
3334
return {
3435
"runs-on": this._config.runsOn,
3536
permissions: this._config.permissions,
37+
"timeout-minutes": this._config.timeoutMinutes,
3638
steps: this._steps.map((step) => {
3739
switch (step.kind) {
3840
case "run":

0 commit comments

Comments
 (0)