From f3b571fd4269758ecdaf39e99b38d8863f491e52 Mon Sep 17 00:00:00 2001 From: jaideepghosh Date: Tue, 8 Oct 2024 18:43:51 +0530 Subject: [PATCH] fix:Let the user trigger the action to build and deploy --- .github/workflows/nextjs.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 961596e..9bfc6ee 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -6,9 +6,12 @@ name: Deploy Next.js site to Pages on: workflow_dispatch: - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + inputs: + branch: + description: "Select branch to run" + required: true + default: "main" + type: string # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: