chore(ci): add paths-ignore for none code related directories (#2695)

* add paths-ignore for none code related directories

* add missing pipe
This commit is contained in:
Jan Larwig 2024-07-18 22:56:57 +02:00 committed by GitHub
parent 343bd61ebb
commit f60b7f321f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 25 additions and 8 deletions

View File

@ -4,19 +4,25 @@ on:
push:
branches:
- '**'
# - $default-branch
paths-ignore:
- '.devcontainer/**'
- '.vscode/**'
- 'contrib/**'
- 'docs/**'
pull_request:
branches:
- '**'
# - $default-branch
paths-ignore:
- '.devcontainer/**'
- '.vscode/**'
- 'contrib/**'
- 'docs/**'
jobs:
build:
runs-on: ubuntu-latest
env:
COVER: true
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
@ -59,7 +65,6 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

View File

@ -2,10 +2,22 @@ name: "Code scanning - action"
on:
push:
branches: [master, ]
branches:
- master
paths-ignore:
- '.devcontainer/**'
- '.vscode/**'
- 'contrib/**'
- 'docs/**'
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
branches:
- master
paths-ignore:
- '.devcontainer/**'
- '.vscode/**'
- 'contrib/**'
- 'docs/**'
schedule:
- cron: '0 15 * * 2'