Skip to content

Commit

Permalink
Added timeout for GH Actions (#593)
Browse files Browse the repository at this point in the history
Signed-off-by: Horiodino <holiodin@gmail.com>
  • Loading branch information
Horiodino authored Feb 4, 2025
1 parent f4bd8b5 commit 075ab06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ct_reusable_monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
outputs:
repository: ${{ steps.detect.outputs.repository }}
ref: ${{ steps.detect.outputs.ref }}
timeout-minutes: 60
steps:
- name: Detect the repository and ref
id: detect
Expand All @@ -54,6 +55,7 @@ jobs:
monitor:
runs-on: ubuntu-latest
needs: [detect-workflow]
timeout-minutes: 60
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/reusable_monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ env:
jobs:
detect-workflow:
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
id-token: write # Needed to detect the current reusable repository and ref.
outputs:
Expand All @@ -63,6 +64,7 @@ jobs:
monitor:
runs-on: ubuntu-latest
needs: [detect-workflow]
timeout-minutes: 60
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
Expand Down Expand Up @@ -94,6 +96,7 @@ jobs:
if-succeeded:
runs-on: ubuntu-latest
needs: [monitor, detect-workflow]
timeout-minutes: 60
permissions:
issues: 'write'
env:
Expand All @@ -112,6 +115,7 @@ jobs:
if-failed:
runs-on: ubuntu-latest
needs: [monitor, detect-workflow]
timeout-minutes: 60
permissions:
issues: 'write'
env:
Expand Down

0 comments on commit 075ab06

Please sign in to comment.