Add CI timeout (#2127)

This commit is contained in:
Masaya Suzuki 2021-11-16 01:25:36 +09:00 committed by GitHub
parent 474495d9f1
commit 60ccdfca87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 14 additions and 0 deletions

View file

@ -32,6 +32,7 @@ jobs:
# Prevent duplicate run from happening when a forked push is committed # Prevent duplicate run from happening when a forked push is committed
if: ${{ github.event_name == 'push' || if: ${{ github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name != github.repository }} github.event.pull_request.head.repo.full_name != github.repository }}
timeout-minutes: 60
################## ##################
# Load all steps # # Load all steps #
################## ##################

View file

@ -32,6 +32,7 @@ jobs:
# Prevent duplicate run from happening when a forked push is committed # Prevent duplicate run from happening when a forked push is committed
if: ${{ github.event_name == 'push' || if: ${{ github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name != github.repository }} github.event.pull_request.head.repo.full_name != github.repository }}
timeout-minutes: 60
################## ##################
# Load all steps # # Load all steps #
################## ##################

View file

@ -29,6 +29,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# Only run this on the main repo # Only run this on the main repo
if: ${{ github.repository == 'github/super-linter' }} if: ${{ github.repository == 'github/super-linter' }}
timeout-minutes: 60
################## ##################
# Load all steps # # Load all steps #
################## ##################

View file

@ -29,6 +29,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# Only run this on the main repo # Only run this on the main repo
if: ${{ github.repository == 'github/super-linter' }} if: ${{ github.repository == 'github/super-linter' }}
timeout-minutes: 60
################## ##################
# Load all steps # # Load all steps #
################## ##################

View file

@ -36,6 +36,8 @@ jobs:
github.actor == 'Hanse00' || github.actor == 'github-actions' || github.actor == 'Hanse00' || github.actor == 'github-actions' ||
github.actor == 'GaboFDC' || github.actor == 'ferrarimarco' }} github.actor == 'GaboFDC' || github.actor == 'ferrarimarco' }}
timeout-minutes: 60
################## ##################
# Load all steps # # Load all steps #
################## ##################

View file

@ -36,6 +36,8 @@ jobs:
github.actor == 'Hanse00' || github.actor == 'github-actions' || github.actor == 'Hanse00' || github.actor == 'github-actions' ||
github.actor == 'GaboFDC' || github.actor == 'ferrarimarco' }} github.actor == 'GaboFDC' || github.actor == 'ferrarimarco' }}
timeout-minutes: 60
################## ##################
# Load all steps # # Load all steps #
################## ##################

View file

@ -21,6 +21,7 @@ on:
jobs: jobs:
update_release_draft: update_release_draft:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 60
steps: steps:
# Drafts your next Release notes as Pull Requests are merged into "master" # Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5 - uses: release-drafter/release-drafter@v5

View file

@ -28,6 +28,7 @@ jobs:
name: Stack linter name: Stack linter
# Set the agent to run on # Set the agent to run on
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 60
################## ##################
# Load all steps # # Load all steps #
################## ##################

View file

@ -27,6 +27,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# only run on schedule # only run on schedule
if: ${{ github.event_name == 'schedule' }} if: ${{ github.event_name == 'schedule' }}
timeout-minutes: 60
steps: steps:
- name: Mark issue stale - name: Mark issue stale
uses: actions/stale@v4 uses: actions/stale@v4
@ -48,6 +49,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# do not run on schedule # do not run on schedule
if: "${{ github.event_name == 'issue_comment' && contains(github.event.issue.labels.*.name, 'O: stale 🤖') && github.event.issue.user.type != 'Bot' }}" if: "${{ github.event_name == 'issue_comment' && contains(github.event.issue.labels.*.name, 'O: stale 🤖') && github.event.issue.user.type != 'Bot' }}"
timeout-minutes: 60
steps: steps:
- name: Mark issue not stale - name: Mark issue not stale
uses: actions/github-script@v5 uses: actions/github-script@v5

View file

@ -10,6 +10,7 @@ jobs:
scan-container: scan-container:
name: Build name: Build
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
timeout-minutes: 60
steps: steps:
###################### ######################
# Checkout code base # # Checkout code base #

View file

@ -28,6 +28,7 @@ on:
jobs: jobs:
actions-tagger: actions-tagger:
runs-on: windows-latest runs-on: windows-latest
timeout-minutes: 60
steps: steps:
############################# #############################
# Check out the latest code # # Check out the latest code #