Skip to content

Commit

Permalink
refactor: use paths instead of paths-ignore
Browse files Browse the repository at this point in the history
it is easier to think about `paths` than `paths-ignore` 😂
  • Loading branch information
vedantmgoyal9 authored Feb 14, 2025
1 parent b68d9a8 commit ffb97a9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ on:
branches: [ main ]
tags:
- 'v*.*.*'
paths-ignore: [docs/**, "**.md"]
paths:
- '**/*.rs'
- '**/Cargo.toml'
- '**/Cargo.lock'
- '.github/workflows/release.yml'
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@ name: Test

on:
push:
paths-ignore: [docs/**, "**.md"]
paths:
- '**/*.rs'
- '**/Cargo.toml'
- '**/Cargo.lock'
- '.github/workflows/test.yml'
pull_request:
paths-ignore: [docs/**, "**.md"]
paths:
- '**/*.rs'
- '**/Cargo.toml'
- '**/Cargo.lock'
- '.github/workflows/test.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down

0 comments on commit ffb97a9

Please sign in to comment.