Skip to content

Commit 2124e43

Browse files
author
Jochum van der Ploeg
authored
feat: add timeout input to the publish workflows (#166)
1 parent 85d4e4d commit 2124e43

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

.github/workflows/dart_pub_publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
pub_credentials:
1919
required: true
2020
type: string
21+
timeout_minutes:
22+
required: false
23+
type: number
24+
default: 5
2125

2226
jobs:
2327
publish:
@@ -26,6 +30,8 @@ jobs:
2630
working-directory: ${{inputs.working_directory}}
2731

2832
runs-on: ${{inputs.runs_on}}
33+
34+
timeout-minutes: ${{inputs.timeout_minutes}}
2935

3036
steps:
3137
- name: 📚 Git Checkout

.github/workflows/flutter_pub_publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ on:
2222
pub_credentials:
2323
required: true
2424
type: string
25+
timeout_minutes:
26+
required: false
27+
type: number
28+
default: 5
2529

2630
jobs:
2731
publish:
@@ -30,6 +34,8 @@ jobs:
3034
working-directory: ${{inputs.working_directory}}
3135

3236
runs-on: ${{inputs.runs_on}}
37+
38+
timeout-minutes: ${{inputs.timeout_minutes}}
3339

3440
steps:
3541
- name: 📚 Git Checkout

.github/workflows/mason_publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
mason_credentials:
1919
required: true
2020
type: string
21+
timeout_minutes:
22+
required: false
23+
type: number
24+
default: 5
2125

2226
jobs:
2327
publish:
@@ -26,6 +30,8 @@ jobs:
2630
working-directory: ${{inputs.working_directory}}
2731

2832
runs-on: ${{inputs.runs_on}}
33+
34+
timeout-minutes: ${{inputs.timeout_minutes}}
2935

3036
steps:
3137
- name: 📚 Git Checkout

0 commit comments

Comments
 (0)