From 2585dd0a0313036eb038e59068e0d4ea2017e122 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sun, 24 Dec 2023 00:37:37 +1100 Subject: [PATCH] skip publish if dispatched --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9e93795d70..103b13bdb9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: if: github.event.inputs.skip_code_checks != 'true' uses: ./.github/workflows/check-python.yml - pytest: + check-pytest: if: github.event.inputs.skip_code_checks != 'true' uses: ./.github/workflows/check-pytest.yml @@ -68,8 +68,8 @@ jobs: publish-testpypi: runs-on: ubuntu-latest - needs: [check-version, check-frontend, check-python, pytest, build] - if: ${{ github.event.inputs.skip_code_checks != true && github.event.inputs.skip_code_checks != 'true' }} + needs: [check-version, check-frontend, check-python, check-pytest, build] + if: github.event_name == 'workflow_dispatch' environment: name: testpypi url: https://test.pypi.org/p/invokeai @@ -87,8 +87,8 @@ jobs: publish-pypi: runs-on: ubuntu-latest - needs: [check-version, check-frontend, check-python, pytest, build] - if: ${{ github.event.inputs.skip_code_checks != true && github.event.inputs.skip_code_checks != 'true' }} + needs: [check-version, check-frontend, check-python, check-pytest, build] + if: github.event_name == 'workflow_dispatch' environment: name: pypi url: https://pypi.org/p/invokeai