mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 02:31:45 +01:00
ci: add build timeout to all jobs
This commit is contained in:
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -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"
|
||||||
@@ -112,7 +113,7 @@ jobs:
|
|||||||
uses: pdm-project/setup-pdm@v4
|
uses: pdm-project/setup-pdm@v4
|
||||||
with:
|
with:
|
||||||
python-version: "${{ matrix.PYTHON_VERSION }}"
|
python-version: "${{ matrix.PYTHON_VERSION }}"
|
||||||
cache: ${{ !startsWith(matrix.os, 'macos') }} # https://github.com/pdm-project/setup-pdm/issues/55
|
cache: ${{ !startsWith(matrix.os, 'macos') }} # https://github.com/pdm-project/setup-pdm/issues/55
|
||||||
|
|
||||||
|
|
||||||
- name: "Install: Python dependencies"
|
- name: "Install: Python dependencies"
|
||||||
@@ -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
|
||||||
@@ -341,7 +343,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
RELEASE_NAME: ${{ steps.release.outputs.name }}
|
RELEASE_NAME: ${{ steps.release.outputs.name }}
|
||||||
COMMIT_MSG: | # https://stackoverflow.com/a/78420438/5116073
|
COMMIT_MSG: | # https://stackoverflow.com/a/78420438/5116073
|
||||||
${{ github.event.head_commit.message }}
|
${{ github.event.head_commit.message }}
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -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
|
||||||
|
|||||||
5
.github/workflows/codeql-analysis.yml
vendored
5
.github/workflows/codeql-analysis.yml
vendored
@@ -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
|
||||||
|
|
||||||
@@ -50,7 +51,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4 # https://github.com/actions/checkout
|
uses: actions/checkout@v4 # https://github.com/actions/checkout
|
||||||
|
|
||||||
|
|
||||||
- name: "Install Python and PDM" # https://github.com/pdm-project/setup-pdm
|
- name: "Install Python and PDM" # https://github.com/pdm-project/setup-pdm
|
||||||
uses: pdm-project/setup-pdm@v4
|
uses: pdm-project/setup-pdm@v4
|
||||||
with:
|
with:
|
||||||
python-version: "${{ env.PYTHON_VERSION }}"
|
python-version: "${{ env.PYTHON_VERSION }}"
|
||||||
|
|||||||
3
.github/workflows/stale.yml
vendored
3
.github/workflows/stale.yml
vendored
@@ -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
|
||||||
|
|||||||
5
.github/workflows/update-python-deps.yml
vendored
5
.github/workflows/update-python-deps.yml
vendored
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user