Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Only run actions when appropriate files were changed

Roland Geider934de6662aba
diff --git a/.github/workflows/angular-ci.yml b/.github/workflows/angular-ci.yml
index 52a804d9a..20ac7db42 100644
--- a/.github/workflows/angular-ci.yml
+++ b/.github/workflows/angular-ci.yml
@@ -1,5 +1,8 @@
name: Continous Integration (Angular)
-on: push
+on:
+ push:
+ paths:
+ - '**.ts'
jobs:
build:
runs-on: ubuntu-latest
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9f0b0c5a9..fb2d6faf9 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,6 +1,14 @@
name: Continous Integration
-on: [pull_request, push]
+on:
+ push:
+ paths:
+ - '**.py'
+ - 'requirements.txt'
+ pull_request:
+ paths:
+ - '**.py'
+ - 'requirements.txt'
jobs:
ci-job:
diff --git a/.github/workflows/formatter.yml b/.github/workflows/formatter.yml
index 6bf11d9b6..583ebe534 100644
--- a/.github/workflows/formatter.yml
+++ b/.github/workflows/formatter.yml
@@ -4,6 +4,8 @@ on:
push:
branches:
- "master"
+ paths:
+ - '**.py'
jobs:
diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml
index 2601fda1e..5e0e3fd10 100644
--- a/.github/workflows/linter.yml
+++ b/.github/workflows/linter.yml
@@ -18,9 +18,13 @@ on:
push:
branches:
- master
+ paths:
+ - '**.py'
pull_request:
branches:
- master
+ paths:
+ - '**.py'
###############
# Set the Job #