Skip to content

Commit

Permalink
ignore docs and readme on some workflows (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
weinong authored Apr 7, 2023
1 parent 7d7e7e7 commit 4539d96
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
name: Build on Push
on: [push, pull_request]
on:
push:
paths-ignore:
- docs/**
- README.md
pull_request:
branches:
- master
paths-ignore:
- docs/**
- README.md

jobs:
build:
name: Build
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@ name: "CodeQL"
on:
push:
branches: [ "master" ]
paths-ignore:
- docs/**
- README.md
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
paths-ignore:
- docs/**
- README.md
schedule:
- cron: '40 10 * * 5'

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ on:
branches:
- master
- main
paths-ignore:
- docs/**
- README.md
pull_request:
paths-ignore:
- docs/**
- README.md
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
Expand Down

0 comments on commit 4539d96

Please sign in to comment.