Commit 714c920c authored by AUTOMATIC1111's avatar AUTOMATIC1111

do not run workflow items twice for PRs from this repo

update names
parent 073e30ee
name: Run Linting/Formatting on Pull Requests name: Linter
on: on:
- push - push
...@@ -6,7 +6,9 @@ on: ...@@ -6,7 +6,9 @@ on:
jobs: jobs:
lint-python: lint-python:
name: Python linter
runs-on: ubuntu-latest 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: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v3 uses: actions/checkout@v3
...@@ -22,7 +24,9 @@ jobs: ...@@ -22,7 +24,9 @@ jobs:
- name: Run Ruff - name: Run Ruff
run: ruff . run: ruff .
lint-js: lint-js:
name: Javascript linter
runs-on: ubuntu-latest 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: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v3 uses: actions/checkout@v3
......
name: Run basic features tests on CPU with empty SD model name: Tests
on: on:
- push - push
...@@ -6,7 +6,9 @@ on: ...@@ -6,7 +6,9 @@ on:
jobs: jobs:
test: test:
name: Tests on CPU with empty model
runs-on: ubuntu-latest 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: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v3 uses: actions/checkout@v3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment