From a13f9cf8bc9d9a12a622d268b30323a0f3e5585d Mon Sep 17 00:00:00 2001
From: Jean-Michel Picod <jmichel@google.com>
Date: Tue, 25 Feb 2020 10:07:03 +0100
Subject: [PATCH] Restore path restriction

This avoids running workflows when it's not needed
---
 .github/workflows/mdlint.yml | 12 ++++++------
 .github/workflows/pylint.yml | 12 ++++++------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/mdlint.yml b/.github/workflows/mdlint.yml
index 1925812..e57ce7c 100644
--- a/.github/workflows/mdlint.yml
+++ b/.github/workflows/mdlint.yml
@@ -1,10 +1,10 @@
 name: markdownlint
-on: [push]
-#  push:
-#    paths:
-#      - '**/*.md'
-#      - '.markdownlint.json'
-#      - '!third_party/**'
+on:
+  push:
+    paths:
+      - '**/*.md'
+      - '.markdownlint.json'
+      - '!third_party/**'
 
 jobs:
   mdlint:
diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml
index 754f852..311f945 100644
--- a/.github/workflows/pylint.yml
+++ b/.github/workflows/pylint.yml
@@ -1,10 +1,10 @@
 name: pylint
-on: [push]
-#  push:
-#    paths:
-#      - '**/*.py'
-#      - '.pylintrc'
-#      - '!third_party/**'
+on:
+  push:
+    paths:
+      - '**/*.py'
+      - '.pylintrc'
+      - '!third_party/**'
 jobs:
   pylint:
     runs-on: ubuntu-latest
-- 
GitLab