Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Trigger linter on pull requests and pushes to master

Roland5ab189629a14
diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml
index 047a7cf02..5883a99a0 100644
--- a/.github/workflows/linter.yml
+++ b/.github/workflows/linter.yml
@@ -10,13 +10,17 @@ name: Lint Code Base
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
#
-#############################
-# Start the job on all push #
-#############################
+################################################
+# Trigger the workflow on push or pull request #
+# but only for the master branch #
+################################################
on:
push:
- branches-ignore:
- - 'master'
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
###############
# Set the Job #