Skip to content

Commit de77040

Browse files
Shubh-Rajmttrbrts
andauthored
chore(ci): add job timeout to prevent hung workflows (#457)
Add explicit timeout-minutes to all jobs to prevent stuck workflows from consuming CI resources for hours (default is 6 hours). - build.yml: 15 minutes - build-and-publish.yml: 20 minutes Closes #456 Signed-off-by: Shubh-Raj <shubhraj625@gmail.com> Co-authored-by: Matt Roberts <7544022+mttrbrts@users.noreply.github.com>
1 parent a8c75bd commit de77040

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
jobs:
99

1010
build:
11-
1211
runs-on: ubuntu-latest
12+
timeout-minutes: 20
1313
env:
1414
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
1515
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010
build:
1111
name: Unit Tests
12+
timeout-minutes: 15
1213

1314
strategy:
1415
matrix:

0 commit comments

Comments
 (0)