diff --git a/.github/workflows/java_lint.yml b/.github/workflows/java_lint.yml index 786d317e5..5bccb5be1 100644 --- a/.github/workflows/java_lint.yml +++ b/.github/workflows/java_lint.yml @@ -1,10 +1,14 @@ -name: "Lint code" +name: "Lint Java code" on: push: paths: - "**.java" - "./.github/workflows/java_lint.yml" + pull_request: + paths: + - "**.java" + - "./.github/workflows/java_lint.yml" defaults: run: diff --git a/.github/workflows/python_lint.yml b/.github/workflows/python_lint.yml index 954bd2554..246b54cf4 100644 --- a/.github/workflows/python_lint.yml +++ b/.github/workflows/python_lint.yml @@ -1,10 +1,14 @@ -name: "Lint code" +name: "Lint Python code" on: push: paths: - "**.py" - "./.github/workflows/python_lint.yml" + pull_request: + paths: + - "**.py" + - "./.github/workflows/python_lint.yml" defaults: run: