From a38a08fcaccbb9a8fc71a0f139cebdd7c6610b79 Mon Sep 17 00:00:00 2001 From: Nathan Blore Date: Sat, 25 Nov 2023 21:03:21 +0000 Subject: [PATCH] workflow --- .github/workflows/deploy.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5a3ee03..f261991 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,10 +1,11 @@ name: Deploy to S3 on: - push: - branches: - - main - workflow_dispatch: + workflow_dispatch: + inputs: + branch: + description: 'Branch to deploy' + required: true jobs: deploy: @@ -13,6 +14,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + with: + ref: ${{ github.event.inputs.branch }} # Use the selected branch from the input - name: Set up AWS CLI uses: aws-actions/configure-aws-credentials@v2