limit workflows to paths or filetypes

This commit is contained in:
Thomas Tendyck 2022-09-03 17:47:47 +02:00 committed by Thomas Tendyck
parent 4db837d7f9
commit 517302e4dc
7 changed files with 27 additions and 1 deletions

View File

@ -6,7 +6,11 @@ on:
push:
branches:
- main
paths:
- "**.go"
pull_request:
paths:
- "**.go"
# Abort runs of *this* workflow, if a new commit with the same ref is pushed.
concurrency:

View File

@ -2,8 +2,12 @@ name: Linting
on:
push:
branches:
- main
- main
paths:
- "docs/**"
pull_request:
paths:
- "docs/**"
jobs:
prose:

View File

@ -5,7 +5,11 @@ on:
push:
branches:
- main
paths:
- "**.go"
pull_request:
paths:
- "**.go"
# Abort runs of *this* workflow, if a new commit with the same ref is pushed.
concurrency:

View File

@ -4,7 +4,11 @@ on:
push:
branches:
- main
paths:
- "**.go"
pull_request:
paths:
- "**.go"
permissions:
contents: read

View File

@ -3,7 +3,11 @@ on:
push:
branches:
- main
paths:
- "**.sh"
pull_request:
paths:
- "**.sh"
# Abort runs of *this* workflow, if a new commit with the same ref is pushed.
concurrency:

View File

@ -5,7 +5,11 @@ on:
push:
branches:
- main
paths:
- "**.go"
pull_request:
paths:
- "**.go"
# Abort runs of *this* workflow, if a new commit with the same ref is pushed.
concurrency:

View File

@ -3,6 +3,8 @@ on:
push:
branches:
- main
paths:
- "docs/docs/reference/cli.md"
workflow_dispatch:
jobs: