Filter GitHub actions triggers on file types (#3009)
Reduce the total amount of Actions running by only running actions relevant to the changes.
This commit is contained in:
@@ -4,9 +4,21 @@ name: "CodeQL"
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- '**.go'
|
||||
- '**.js'
|
||||
- '**.jsx'
|
||||
- '**.ts'
|
||||
- '**.tsx'
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- '**.go'
|
||||
- '**.js'
|
||||
- '**.jsx'
|
||||
- '**.ts'
|
||||
- '**.tsx'
|
||||
schedule:
|
||||
- cron: '18 17 * * 1'
|
||||
|
||||
|
||||
@@ -3,7 +3,11 @@ name: Deploy Fleet website
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
|
||||
paths:
|
||||
- 'website/**'
|
||||
- 'docs/**'
|
||||
- 'handbook/**'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
if: ${{ github.repository == 'fleetdm/fleet' }}
|
||||
|
||||
@@ -4,7 +4,11 @@ on:
|
||||
branches:
|
||||
- main
|
||||
- patch-*
|
||||
paths:
|
||||
- '**.go'
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.go'
|
||||
jobs:
|
||||
golangci:
|
||||
name: lint
|
||||
|
||||
@@ -5,6 +5,8 @@ on:
|
||||
branches:
|
||||
- main
|
||||
- patch-*
|
||||
paths:
|
||||
- '**.go'
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.go'
|
||||
|
||||
Reference in New Issue
Block a user