Skip to content

Commit

Permalink
Change github workflow triggers from paths-ignore to paths
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ecbr0wn committed Feb 25, 2023
1 parent 65bab37 commit d98519b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 17 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@ on:
push:
branches:
- '**'
paths-ignore:
- '**/*.md'
- 'LICENSE'
- '**/snapcraft.yaml'
paths:
- '**/*.rs'
- 'src/*'
- 'Cargo.*'
- '.github/workflows/build.yml'
pull_request:
branches:
- '**'
paths-ignore:
- '**/*.md'
- 'LICENSE'
- '**/snapcraft.yaml'
paths:
- '**/*.rs'
- 'src/*'
- 'Cargo.*'
- '.github/workflows/build.yml'
workflow_dispatch:
schedule:
- cron: '0 0 * * 1'
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,21 @@ name: rust-clippy analyze

on:
push:
branches: [ main ]
paths-ignore:
- '**/*.md'
- 'LICENSE'
- '**/snapcraft.yaml'
branches:
- main
paths:
- '**/*.rs'
- 'src/*'
- 'Cargo.*'
- '.github/workflows/clippy.yml'
pull_request:
branches:
- main
paths:
- '**/*.rs'
- 'src/*'
- 'Cargo.*'
- '.github/workflows/clippy.yml'
schedule:
- cron: '0 2 * * 1'

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ on:
push:
branches:
- '**'
paths-ignore:
- '**/*.md'
- 'LICENSE'
- '**/snapcraft.yaml'
paths:
- '**/*.rs'
- 'src/*'
- 'Cargo.*'
- '.github/workflows/fmt.yml'

jobs:
format:
Expand Down

0 comments on commit d98519b

Please sign in to comment.