Skip to content

Commit cca4038

Browse files
authored
Run actions only if code related files changes (TheAlgorithms#3000)
1 parent 060069c commit cca4038

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
name: Build
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
paths:
5+
- 'src/**'
6+
- '**.yml'
7+
- '**.xml'
8+
- '**.Dockerfile'
9+
pull_request:
10+
paths:
11+
- 'src/**'
12+
- '**.yml'
13+
- '**.xml'
14+
- '**.Dockerfile'
315
jobs:
416
build:
517
runs-on: ubuntu-latest

.github/workflows/prettify.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
name: Prettify
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
paths:
5+
- 'src/**'
6+
- '**.yml'
7+
- '**.xml'
8+
- '**.Dockerfile'
9+
pull_request:
10+
paths:
11+
- 'src/**'
12+
- '**.yml'
13+
- '**.xml'
14+
- '**.Dockerfile'
315
jobs:
416
prettier:
517
runs-on: ubuntu-latest

.github/workflows/update_directory.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
# This GitHub Action updates the DIRECTORY.md file (if needed) when doing a git push
22
name: Update Directory
3-
on: [push, pull_request]
3+
on:
4+
push:
5+
paths:
6+
- 'src/**'
7+
- '**.yml'
8+
- '**.xml'
9+
- '**.Dockerfile'
10+
pull_request:
11+
paths:
12+
- 'src/**'
13+
- '**.yml'
14+
- '**.xml'
15+
- '**.Dockerfile'
416
jobs:
517
update_directory_md:
618
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)