From d57ef7a78c022ac9980f144968c761077b1239e9 Mon Sep 17 00:00:00 2001 From: alex289 Date: Wed, 6 Dec 2023 10:13:24 +0100 Subject: [PATCH] feat: Add input to cd --- .github/workflows/dotnet.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 1f1840a..1b8cd23 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -2,6 +2,12 @@ name: CI/CD on: workflow_dispatch: + inputs: + release: + description: 'Create a new release' + required: true + default: 'false' + options: ['true', 'false'] push: branches: [ main ] pull_request: @@ -38,7 +44,7 @@ jobs: cd: runs-on: ubuntu-latest needs: ci - if: github.event_name == 'workflow_run' + if: github.event_name == 'workflow_dispatch' && ${{ github.event.inputs.release != 'false' }} steps: - name: Set up QEMU uses: docker/setup-qemu-action@v3