Skip to content

Commit 140c929

Browse files
authored
Merge pull request #1385 from harehare/chore/ci-remove-paths-filter
👷 ci: remove paths-filter and simplify workflow dependencies
2 parents 2f682bd + 46583f5 commit 140c929

File tree

2 files changed

+8
-32
lines changed

2 files changed

+8
-32
lines changed

.github/workflows/bench.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ name: benchmarks
33
on:
44
push:
55
branches: ["main"]
6+
paths:
7+
- 'crates/mq-lang/**'
68
pull_request:
79
branches: ["main"]
10+
paths:
11+
- 'crates/mq-lang/**'
812

913
concurrency:
1014
group: "benchmarks"
@@ -14,24 +18,9 @@ env:
1418
CARGO_TERM_COLOR: always
1519

1620
jobs:
17-
changes:
18-
runs-on: ubuntu-latest
19-
if: github.actor != 'dependabot[bot]' && contains(github.event.commits.*.message, '[skip ci]') == false
20-
outputs:
21-
lang: ${{ steps.filter.outputs.lang }}
22-
steps:
23-
- uses: actions/checkout@v6
24-
- uses: dorny/paths-filter@v3
25-
id: filter
26-
with:
27-
filters: |
28-
lang:
29-
- 'crates/mq-lang/**'
30-
3121
benchmarks:
32-
needs: changes
3322
runs-on: ubuntu-latest
34-
if: ${{ needs.changes.outputs.lang == 'true' }}
23+
if: github.actor != 'dependabot[bot]'
3524
steps:
3625
- uses: actions/checkout@v6
3726
- uses: actions-rust-lang/setup-rust-toolchain@v1

.github/workflows/pages.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Deploy docs
33
on:
44
push:
55
branches: ["main"]
6+
paths:
7+
- 'docs/**'
8+
- 'packages/mq-playground/**'
69
workflow_dispatch:
710

811
permissions:
@@ -15,24 +18,8 @@ concurrency:
1518
cancel-in-progress: false
1619

1720
jobs:
18-
changes:
19-
runs-on: ubuntu-latest
20-
if: github.actor != 'dependabot[bot]' && contains(github.event.commits.*.message, '[skip ci]') == false
21-
outputs:
22-
docs: ${{ steps.filter.outputs.docs }}
23-
steps:
24-
- uses: actions/checkout@v6
25-
- uses: dorny/paths-filter@v3
26-
id: filter
27-
with:
28-
filters: |
29-
docs:
30-
- 'docs/**'
31-
3221
build_and_deploy:
33-
needs: changes
3422
runs-on: ubuntu-latest
35-
if: ${{ needs.changes.outputs.docs == 'true' }}
3623
steps:
3724
- name: Checkout
3825
uses: actions/checkout@v6

0 commit comments

Comments
 (0)