Set more sensible job timeouts

pull/1167/head
Tyrrrz 10 months ago
parent 116cdc0746
commit 309e58116a

@ -10,6 +10,8 @@ jobs:
# the Dockerfile builds correctly on pull requests.
pack:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
actions: write
contents: read
@ -38,7 +40,10 @@ jobs:
deploy:
# Deploy to DockerHub only on tag push or master branch push
if: ${{ github.ref_type == 'tag' || github.ref_type == 'branch' && github.ref_name == 'master' }}
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read

@ -13,6 +13,8 @@ env:
jobs:
format:
runs-on: windows-latest
timeout-minutes: 10
permissions:
contents: read
@ -34,7 +36,10 @@ jobs:
test:
# Tests need access to secrets, so we can't run them against PRs because of limited trust
if: ${{ github.event_name != 'pull_request' }}
runs-on: windows-latest
timeout-minutes: 10
permissions:
contents: read
@ -73,6 +78,8 @@ jobs:
- DiscordChatExporter.Gui
runs-on: windows-latest
timeout-minutes: 10
permissions:
actions: write
contents: read
@ -110,6 +117,8 @@ jobs:
- pack
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: write
@ -140,6 +149,8 @@ jobs:
asset: DiscordChatExporter
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
actions: read
contents: write
@ -167,6 +178,8 @@ jobs:
notify:
needs: deploy
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read

Loading…
Cancel
Save