From b4632ac6cda49208ccc7450af86fe5a3a0a1d21b Mon Sep 17 00:00:00 2001 From: Fina Wilke Date: Thu, 25 Jul 2024 22:25:58 +0200 Subject: [PATCH] ci: Only update release on main branch or tag push --- .github/workflows/push.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 92555cc3..0c4539d4 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -273,6 +273,7 @@ jobs: pattern: "magic-wormhole-cli-*" - name: Update Release uses: softprops/action-gh-release@v2 + if: ${{ startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/main') }} with: name: "Version ${{ steps.query-version.outputs.version }}" body: ${{ steps.query-changelog.outputs.release-notes }}