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:
Zach Wasserman
2021-11-18 15:14:29 -08:00
committed by GitHub
parent 3811a63daf
commit 850d36543d
4 changed files with 23 additions and 1 deletions
+12
View File
@@ -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'
+5 -1
View File
@@ -3,7 +3,11 @@ name: Deploy Fleet website
on:
push:
branches: [ main ]
paths:
- 'website/**'
- 'docs/**'
- 'handbook/**'
jobs:
build:
if: ${{ github.repository == 'fleetdm/fleet' }}
+4
View File
@@ -4,7 +4,11 @@ on:
branches:
- main
- patch-*
paths:
- '**.go'
pull_request:
paths:
- '**.go'
jobs:
golangci:
name: lint
+2
View File
@@ -5,6 +5,8 @@ on:
branches:
- main
- patch-*
paths:
- '**.go'
pull_request:
paths:
- '**.go'