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:
Cedric Willekens
2024-05-05 21:00:13 +02:00
parent 5b83049ea0
commit 4d81513b81
4 changed files with 5 additions and 2 deletions

View File

@@ -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