From a9cc687dc3eabec9320bf7a002645d1e2577d787 Mon Sep 17 00:00:00 2001 From: Janosh Riebesell Date: Fri, 23 Jun 2023 14:59:31 -0700 Subject: [PATCH] add workflow_dispatch trigger to test.yml action --- .github/workflows/test.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aae1ccd5..541d9319 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,6 +11,13 @@ on: branches: [main] release: types: [published] + workflow_dispatch: + inputs: + task: + type: choice + options: [tests, release] + default: tests + description: Only run tests or release a new version of pymatgen to PyPI after tests pass. jobs: tests: @@ -48,7 +55,7 @@ jobs: release: runs-on: ubuntu-latest needs: tests - if: github.event_name == 'release' && needs.tests.result == 'success' + if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.task == 'release') permissions: # For PyPI trusted publishing id-token: write