mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fix gha smells:
- Avoid running CI related actions when no source code has changed - Avoid executing scheduled workflows on forks - Avoid jobs without timeouts
This commit is contained in:
2
.github/workflows/api-docs.yml
vendored
2
.github/workflows/api-docs.yml
vendored
@@ -4,6 +4,8 @@ on:
|
||||
push:
|
||||
# only publish v2 (main or develop); v2 is published via the Terminal.GuiV2Docs repo
|
||||
branches: [main, develop]
|
||||
paths:
|
||||
- docfx/**
|
||||
|
||||
permissions:
|
||||
id-token: write
|
||||
|
||||
2
.github/workflows/codeql-analysis.yml
vendored
2
.github/workflows/codeql-analysis.yml
vendored
@@ -25,7 +25,7 @@ on:
|
||||
|
||||
jobs:
|
||||
CodeQL-Build:
|
||||
|
||||
if: github.repository == 'gui-cs/Terminal.Gui'|| github.event_name == 'schedule'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
1
.github/workflows/codeql.yml
vendored
1
.github/workflows/codeql.yml
vendored
@@ -29,6 +29,7 @@ jobs:
|
||||
# Consider using larger runners for possible analysis time improvements.
|
||||
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
|
||||
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
|
||||
if: github.repository == 'gui-cs/Terminal.Gui'|| github.event_name == 'schedule'
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
|
||||
2
.github/workflows/dotnet-core.yml
vendored
2
.github/workflows/dotnet-core.yml
vendored
@@ -13,7 +13,7 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user