diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-14 06:47:44 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-14 06:47:44 +0000 |
commit | 714c920c20d07d70a0dd07c8c5cb54d9378e92c4 (patch) | |
tree | f3a43297d537f08e39cbed40b05766ee99a1a069 /.github | |
parent | 073e30ee1599db54464d055e4723778e370515fa (diff) | |
download | stable-diffusion-webui-gfx803-714c920c20d07d70a0dd07c8c5cb54d9378e92c4.tar.gz stable-diffusion-webui-gfx803-714c920c20d07d70a0dd07c8c5cb54d9378e92c4.tar.bz2 stable-diffusion-webui-gfx803-714c920c20d07d70a0dd07c8c5cb54d9378e92c4.zip |
do not run workflow items twice for PRs from this repo
update names
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/on_pull_request.yaml | 6 | ||||
-rw-r--r-- | .github/workflows/run_tests.yaml | 4 |
2 files changed, 8 insertions, 2 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 diff --git a/.github/workflows/run_tests.yaml b/.github/workflows/run_tests.yaml index 178c026a..2af21448 100644 --- a/.github/workflows/run_tests.yaml +++ b/.github/workflows/run_tests.yaml @@ -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 |