Skip to content

Commit

Permalink
Ignore the workflow when files irrelevant to the build are changed (B…
Browse files Browse the repository at this point in the history
…rainiumLLC#78)

* ignore the builds, tests, formattings check etc. in certain cases

* workflow names should match
  • Loading branch information
zeerooth committed Mar 15, 2022
1 parent e01ba97 commit 39cc475
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@ name: CI

on:
pull_request:
paths:
- "**.rs"
- "**.toml"
- "**.lock"
- ".github/workflows/*.yml"
push:
paths:
- "**.rs"
- "**.toml"
- "**.lock"
- ".github/workflows/*.yml"
branches: [master]

jobs:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/ignore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on:
pull_request:
paths-ignore:
- "**.rs"
- "**.toml"
- "**.lock"
- ".github/workflows/*.yml"
push:
paths-ignore:
- "**.rs"
- "**.toml"
- "**.lock"
- ".github/workflows/*.yml"
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required" '

0 comments on commit 39cc475

Please sign in to comment.