aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/on_pull_request.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/on_pull_request.yaml')
-rw-r--r--.github/workflows/on_pull_request.yaml6
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/on_pull_request.yaml b/.github/workflows/on_pull_request.yaml
index 8ebf5918..c56eea6b 100644
--- a/.github/workflows/on_pull_request.yaml
+++ b/.github/workflows/on_pull_request.yaml
@@ -1,4 +1,4 @@
-name: Run Linting/Formatting on Pull Requests
+name: Linter
on:
- push
@@ -6,7 +6,9 @@ on:
jobs:
lint-python:
+ name: Python linter
runs-on: ubuntu-latest
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: Checkout Code
uses: actions/checkout@v3
@@ -22,7 +24,9 @@ jobs:
- name: Run Ruff
run: ruff .
lint-js:
+ name: Javascript linter
runs-on: ubuntu-latest
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: Checkout Code
uses: actions/checkout@v3