ci: add build timeout to all jobs

This commit is contained in:
sebthom
2025-02-10 18:51:54 +01:00
parent 2402ba2572
commit ec7ffedcd6
4 changed files with 15 additions and 8 deletions

View File

@@ -2,7 +2,7 @@
# SPDX-License-Identifier: AGPL-3.0-or-later # SPDX-License-Identifier: AGPL-3.0-or-later
# SPDX-ArtifactOfProjectHomePage: https://github.com/Second-Hand-Friends/kleinanzeigen-bot # SPDX-ArtifactOfProjectHomePage: https://github.com/Second-Hand-Friends/kleinanzeigen-bot
# #
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions # https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
name: Build name: Build
on: on:
@@ -79,6 +79,7 @@ jobs:
PUBLISH_RELEASE: true PUBLISH_RELEASE: true
runs-on: ${{ matrix.os }} # https://github.com/actions/runner-images#available-images runs-on: ${{ matrix.os }} # https://github.com/actions/runner-images#available-images
timeout-minutes: 10
steps: steps:
- name: "Show: GitHub context" - name: "Show: GitHub context"
@@ -252,6 +253,7 @@ jobs:
publish-release: publish-release:
########################################################### ###########################################################
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 5
needs: needs:
- build - build
if: (github.ref_name == 'main' || github.ref_name == 'release') && !github.event.act if: (github.ref_name == 'main' || github.ref_name == 'release') && !github.event.act
@@ -385,6 +387,7 @@ jobs:
needs: build needs: build
if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 5
permissions: permissions:
contents: write contents: write
@@ -404,6 +407,7 @@ jobs:
needs: build needs: build
if: github.event_name == 'pull_request' && github.actor == 'kleinanzeigen-bot-tu[bot]' && github.head_ref == 'dependencies/pdm' if: github.event_name == 'pull_request' && github.actor == 'kleinanzeigen-bot-tu[bot]' && github.head_ref == 'dependencies/pdm'
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 5
permissions: permissions:
contents: write contents: write

View File

@@ -30,7 +30,7 @@ defaults:
shell: bash shell: bash
env: env:
PYTHON_VERSION: "3.12" PYTHON_VERSION: "3.13.2"
jobs: jobs:
@@ -38,6 +38,7 @@ jobs:
analyze: analyze:
########################################################### ###########################################################
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 10
permissions: permissions:
security-events: write security-events: write

View File

@@ -1,4 +1,4 @@
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions # https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
name: Stale issues name: Stale issues
on: on:
@@ -14,6 +14,7 @@ permissions:
jobs: jobs:
stale: stale:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 10
steps: steps:
- name: Git checkout - name: Git checkout

View File

@@ -2,7 +2,7 @@
# SPDX-License-Identifier: AGPL-3.0-or-later # SPDX-License-Identifier: AGPL-3.0-or-later
# SPDX-ArtifactOfProjectHomePage: https://github.com/Second-Hand-Friends/kleinanzeigen-bot/ # SPDX-ArtifactOfProjectHomePage: https://github.com/Second-Hand-Friends/kleinanzeigen-bot/
# #
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions # https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
name: Update Python Dependencies name: Update Python Dependencies
on: on:
@@ -25,6 +25,7 @@ jobs:
update-python-deps: update-python-deps:
########################################################### ###########################################################
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 10
steps: steps:
- name: "Show: GitHub context" - name: "Show: GitHub context"
@@ -38,7 +39,7 @@ jobs:
- name: Generate GitHub Access Token - name: Generate GitHub Access Token
uses: tibdex/github-app-token@v2 #https://github.com/tibdex/github-app-token uses: tibdex/github-app-token@v2 # https://github.com/tibdex/github-app-token
id: generate_token id: generate_token
# see https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#authenticating-with-github-app-generated-tokens # see https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#authenticating-with-github-app-generated-tokens
with: with: