Skip to content

Commit

Permalink
ci: Optimize GitHub workflow event paths
Browse files Browse the repository at this point in the history
- Exclude specific files and directories from push and pull request events in workflows
- Add paths to be ignored during push in release workflow
  • Loading branch information
johnnyhuy committed Apr 21, 2024
1 parent 0ffa089 commit 5ca2821
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@ on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- '*.md'
- LICENSE
- '.github/**'
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
- '*.md'
- LICENSE
- '.github/**'
workflow_dispatch:

jobs:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/publish-latest-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- '*.md'
- LICENSE
- '.github/**'
workflow_dispatch:

permissions: write-all
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- '*.md'
- LICENSE
- '.github/**'

permissions: write-all

Expand Down

0 comments on commit 5ca2821

Please sign in to comment.