From bef8b1ca7543b5698d5a70a1715ba98113a98a04 Mon Sep 17 00:00:00 2001 From: Ryther Anderson Date: Sat, 2 Dec 2023 08:45:07 -0800 Subject: [PATCH] Add event name check --- .github/workflows/pypi-publish.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 96ed282..fae37d6 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -15,11 +15,10 @@ jobs: permissions: id-token: write if: | + github.event_name == 'workflow_run' && startsWith(github.ref, 'refs/tags/') && ${{ github.event.workflow_run.conclusion == 'success' }} steps: - - name: Debug GitHub Ref - run: echo ${{ github.ref }} - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v4