Skip to content

Commit a3aa09a

Browse files
committed
ci: Only run r/python workflows when those files change
1 parent 31f140d commit a3aa09a

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

.github/workflows/R-CMD-check.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55
on:
66
push:
77
branches: [main, rc-**]
8+
paths:
9+
- 'pkg-r/**'
10+
- '.github/workflows/R-CMD-check.yml'
811
pull_request:
12+
paths:
13+
- 'pkg-r/**'
14+
- '.github/workflows/R-CMD-check.yml'
915
schedule:
1016
- cron: "0 8 * * 1" # every monday
1117

.github/workflows/docs-py-quartodoc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ubuntu-latest
3232

3333
# Only run on release events for tags start with "py/v*"
34-
# if: github.event_name != 'release' || startsWith(github.ref, 'refs/tags/py/v')
34+
if: github.event_name != 'release' || startsWith(github.ref, 'refs/tags/py/v')
3535

3636
steps:
3737
- name: Check out repository

.github/workflows/docs-r-pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
contents: write
3636

3737
# Only run on release events for tags start with "r/v*"
38-
# if: github.event_name != 'release' || startsWith(github.ref, 'refs/tags/r/v')
38+
if: github.event_name != 'release' || startsWith(github.ref, 'refs/tags/r/v')
3939

4040
steps:
4141
- uses: actions/checkout@v4

.github/workflows/py-test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@ on:
44
workflow_dispatch:
55
push:
66
branches: ["main", "rc-*"]
7+
paths:
8+
- 'pkg-py/**'
9+
- 'pyproject.toml'
10+
- '.github/workflows/py-test.yml'
711
pull_request:
812
types: [opened, synchronize, reopened, ready_for_review]
13+
paths:
14+
- 'pkg-py/**'
15+
- 'pyproject.toml'
16+
- '.github/workflows/py-test.yml'
917
release:
1018
types: [published]
1119

0 commit comments

Comments
 (0)