Skip to content

Commit f9583cb

Browse files
committed
👷 Limit Github Actions to run only when necessary
1 parent 170864c commit f9583cb

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.github/workflows/define-labels.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: Define Github labels
22
on:
33
push:
4-
branches:
5-
- development
4+
branches: ["development"]
5+
paths:
6+
- .github/workflows/define-labels.yml
7+
- .github/labels.yml
8+
69
jobs:
710
define:
811
runs-on: ubuntu-22.04

.github/workflows/run-project-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ on:
55
branches: [development]
66
pull_request:
77
branches: [development]
8+
paths:
9+
- .github/**
10+
- src/**
11+
- tests/**
12+
- example_extension_project/**
13+
- example_integration_project/**
14+
- example_replacement_project/**
815

916
env:
1017
PYTHONDONTWRITEBYTECODE: 1

.github/workflows/run-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [development]
66
pull_request:
77
branches: [development]
8+
paths: [".github/**", "src/**", "tests/**"]
9+
810

911
env:
1012
PYTHONDONTWRITEBYTECODE: 1

0 commit comments

Comments
 (0)