From d7b40d650f7942646246fb3f59a3dacf1dd3308d Mon Sep 17 00:00:00 2001 From: Rid Shakeel Date: Sun, 27 Oct 2024 19:52:22 -0700 Subject: [PATCH] update workflow --- .github/workflows/release.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9cd3263..5fb0feb 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,13 +2,16 @@ name: "Release" on: workflow_dispatch: - push: - branches: - - main + inputs: + create_release: + description: "Should this push create a release?" + required: true + default: "false" + type: boolean jobs: release: - if: ${{ github.ref == 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/main' && github.event.inputs.create_release == 'true' }} runs-on: ubuntu-24.04 steps: