From 7214e0303df9340cc42f159c189e6c8ca0f0bcf9 Mon Sep 17 00:00:00 2001 From: Demetrius Kanios Date: Mon, 3 Aug 2026 17:08:59 -0700 Subject: [PATCH] Only update release when appropriate --- .github/workflows/main.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3785712..ccdde29 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,8 +1,5 @@ name: Main -on: - push: - workflow_dispatch: - workflow_call: +on: [push, pull_request, workflow_dispatch, workflow_call] permissions: contents: write @@ -64,6 +61,7 @@ jobs: path: dist/pumpkin_api_py* - name: Upload artifacts to release + if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master' uses: ncipollo/release-action@v1 with: tag: ${{ env.GITHUB_RELEASE_TAG }}