do not run workflow items twice for PRs from this repo

update names
This commit is contained in:
AUTOMATIC1111 2023-07-14 09:47:44 +03:00
parent 073e30ee15
commit 714c920c20
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -1,4 +1,4 @@
name: Run basic features tests on CPU with empty SD model
name: Tests
on:
- push
@ -6,7 +6,9 @@ on:
jobs:
test:
name: Tests on CPU with empty model
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